Embedded images in PDF (not working)

Embedded images in PDF (not working)

Thursday 01 December 2005 9:17:32 pm - 2 replies

Modified on Thursday 01 December 2005 9:18:00 pm by Nathan Kelly

Author Message

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...

You must be logged in to post messages in this topic!

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