image not shown in PDF

Author Message

fabian schoen

Monday 23 October 2006 4:00:21 am

Hi

I've found some forum messages for similar problems, but in the most of them, they see the URL instead of the image in the PDF. Actually I would be happy if I would see the url ;-)

I started with this PDF tutorial --> http://ez.no/products/ez_publish/...ntation/incoming/pdf_export_tutorial

Added override.ini.append.php:

[item_pdf]
Source=node/view/pdf.tpl
MatchFile=full/item_pdf.tpl
Subdir=templates
Match[class_identifier]=item

[item_image_pdf]
Source=content/pdf/embed.tpl
MatchFile=full/item_image_pdf.tpl
Subdir=templates
Match[class_identifier]=image

item_image_pdf.tpl:

{default image_class=large
        alignment=false()
        hspace=false()
        border_size=0}
{let image_attribute=$object.data_map.image image_content=$image_attribute.content}
 {let image=$image_content[$image_class]}
 
      {pdf(image,hash(src,$image.full_path,
                      width,$image.width,
                      height,$image.height,
                      border,$border_size))}
 
 {/let}
{/let}
{/default}

Now I try to show an image with the following code:

{pdf(image,hash('src',$itemImage.object.data_map.image.content[original].full_path|ezroot,
                      width,30,
                      height,40,
                      border,3)) }

The generated PDF doesn't show the image or at least the URL.

At first I thought, that the URL path is incorrect, but the code below show me the correct value:

{pdf(text,$itemImage.object.data_map.image.content[original].full_path|ezroot|wash(pdf) )}

I enabled the debug features as the next step.
The output in the file looks from my point of view OK
notice.log:

...
[ Oct 19 2006 21:26:37 ] [84.227.234.85] :
PDF: Changed font.
[ Oct 19 2006 21:26:37 ] [84.227.234.85] eZPDF::modify:
PDF: Added Image
...

warning.log:

...[ Oct 19 2006 21:26:37 ] [84.227.234.85] Timing Point: Module start 'content'
[ Oct 19 2006 21:26:37 ] [84.227.234.85] PHP:
Undefined index: align in ... /lib/ezpdf/classes/class.ezpdftable.php on line 1201
... 

error.log: there is no entry for this time period.

Did I do something completly wrong?
What can I do to isolate the problem?

Any help is appreciated.

thanks and regards
fabian
ezPublish 3.6.10

fabian schoen

Thursday 26 October 2006 1:40:27 am

<b>SOLVED</b>

The error was the <b>ezroot</b>.

It works without it

{pdf(image,hash('src',$itemImage.object.data_map.image.content[original].full_path,
                     width,30,
                     height,40,
                     border,3)) }

regards
fabian

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 18 2025 19:05:34
Script start
Timing: Jan 18 2025 19:05:34
Module start 'layout'
Timing: Jan 18 2025 19:05:34
Module start 'content'
Timing: Jan 18 2025 19:05:34
Module end 'content'
Timing: Jan 18 2025 19:05:34
Script end

Main resources:

Total runtime0.0216 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.0391152.6250
Module start 'layout' 0.00730.0043 741.664139.4453
Module start 'content' 0.01160.0075 781.109489.3203
Module end 'content' 0.01920.0023 870.429734.3047
Script end 0.0215  904.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002813.0141140.0002
Check MTime0.00125.5156140.0001
Mysql Total
Database connection0.00156.735910.0015
Mysqli_queries0.004118.892230.0014
Looping result0.00000.084010.0000
Template Total0.00209.110.0020
Template load0.00125.693510.0012
Template processing0.00073.416610.0007
Override
Cache load0.00062.804210.0006
General
dbfile0.002410.912980.0003
String conversion0.00000.055340.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