High quiality PDF for print

Author Message

Pascal van Bergen

Monday 10 May 2004 1:47:25 am

Hi,

I'm researching what CMS to use for a project of the company I'm working for. eZ publish seems to be a very good candidate; we already have it up and running in a test environment.

However, what we would like to do is the following: we would like to put hi-res (300dpi or more) images in the database, and use them low-res on our website. So far no problems. However, we would like to use the hi-res images to output hi-res PDF files, in order for us to be able to print them in full colour in (conventional) print quality. We would also like to include fonts in the PDF files.

As far as I have seen this isn't possible yet. However, I could be wrong. Therefore I would like to know if someone knows if this would be possible with eZ publish, or that it will be in the future. At this moment I'm not looking into the technical details too much (yet), I would only like to know if the concept would work.

Your help is appreciated!

Regards,
Pascal van Bergen

Kåre Køhler Høvik

Monday 10 May 2004 2:16:24 am

In 3.4 it's possible to specify DPI when adding images to PDF. It's also possible to embed custom TrueType Fonts.
Template code for adding images with custom resolution is something like :

{pdf(image, hash( src, src,$image_content.original.full_path,
                  width, 200,
                  height, 200,
                  dpi, 300 ) )}

Width and height specify size in PDF document. Actual image size is calculated based on DPI and specified size, and resized automaticly on the fly.

--
Kåre Høvik

Kåre Høvik

Pascal van Bergen

Monday 10 May 2004 5:02:55 am

Thank you for your prompt reply! Should this already be working in 3.4.0 Alpha 4?

Kåre Køhler Høvik

Monday 10 May 2004 7:26:15 am

Hi

Setting custom DPI and font will not work untill 3.4 beta 2.
Using custom TrueType fonts is a bit tricky, but I'll post some instructions on it before the final release.

--
Kåre Høvik

Kåre Høvik

Pascal van Bergen

Monday 10 May 2004 8:08:43 am

Okay, that's great. I just have to be a bit patient then... :-)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:11:12
Script start
Timing: Jan 31 2025 06:11:12
Module start 'layout'
Timing: Jan 31 2025 06:11:12
Module start 'content'
Timing: Jan 31 2025 06:11:12
Module end 'content'
Timing: Jan 31 2025 06:11:12
Script end

Main resources:

Total runtime0.0225 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1250151.2109
Module start 'layout' 0.00480.0020 739.335936.6484
Module start 'content' 0.00680.0139 775.984494.2344
Module end 'content' 0.02060.0018 870.218833.9922
Script end 0.0224  904.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.3136140.0002
Check MTime0.00125.2189140.0001
Mysql Total
Database connection0.00062.702910.0006
Mysqli_queries0.00198.256230.0006
Looping result0.00000.044610.0000
Template Total0.00125.510.0012
Template load0.00094.159410.0009
Template processing0.00031.318510.0003
Override
Cache load0.00062.822810.0006
General
dbfile0.006930.761480.0009
String conversion0.00000.031840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs