Forums / Setup & design / image not shown in PDF

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