Forums / Setup & design / Embedded images in PDF (not working)

Embedded images in PDF (not working)

Author Message

Nathan Kelly

Thursday 01 December 2005 9:17:32 pm

hi I know this issue has been raised a few times, but after searching the forums and reading all of the related posts I'm still no closer to working this out.

I'm embedding my images in my articles via the XMLfield, my problem is the same as this post:
http://ez.no/community/forum/general/problem_with_pdf_images

My images show up as a link, I have followed the tutorial http://ez.no/products/ez_publish_cms/documentation/incoming/pdf_export_tutorial
down to the last detail, but the results are the same (a link to an image but no image).

I looked for bug reports on this problem but there don't seem to be any? (similar but not the same)

I'm using version 3.6.0, if anybody has had this problem and has found a solution I'd be extremely grateful for any suggestions. Please help my site is almost finished but this (and a few other problems) is holding up the release date.

Cheers!

Pardon me while I burst into flames...

Mads Ovesen

Friday 02 December 2005 4:25:13 am

Try this:

{pdf( text_box,  hash( text, pdf( image, hash(src,$node.object.data_map.<your_image>.content.main_node.object.data_map.image.content.pdf.url,                   
width,$node.object.data_map.<your_image>.content.main_node.object.data_map.image.content.pdf.width,                   
height,$node.object.data_map.<your_image>.content.main_node.object.data_map.image.content.pdf.height ) ) ,
                x, <x-coordinate>,
                y, <y-coordinate>,
                width, <width>,
                align, <left|center|right>))}

It works for me (v.3.4.x). But I can't really get text around it.

- Mads

/m

Nathan Kelly

Friday 02 December 2005 3:22:26 pm

Hi Mads, the only problem I see with your code is that I would have to specify the image name, this is no good as the image will be different in every article and there may be more than one.

I can put a logo in the pdf with no problem, its the embedded images (placed in the XML block) that won't work, I will also need the images to float to the right and allow for the text to wrap around them.

Any other ideas?

Cheers!

Pardon me while I burst into flames...