Forums / Setup & design / pdf and images : only a link
laurent le cadet
Friday 30 September 2005 9:49:53 am
Hi,
A small problem while generating a PDF embed images are diplay as a link/not image are shown.
I had a look to pdf/article/image.tpl which seems to be ok :
{default image_class=large hspace=false() align="center" border_size=0} {let image_attribute=$object.data_map.image image_content=$image_attribute.content} {section show=is_set($attribute_parameters.align)} {set align=$attribute_parameters.align} {set image_class=$attribute_parameters.size} {section-else} {set align="center"} {/section} {let image=$image_content[$image_class]} {pdf(image,hash(src,$image.full_path, width,$image.width, height,$image.height, border,$border_size, align, $align))} {/let} {* {/section} *} {/let} {/default}
Any idea ?
Thanks
Mads Ovesen
Monday 03 October 2005 7:22:12 am
How about
{pdf( text_box, hash( text, pdf( image, hash(src, $node.object.data_map.<name>.content.main_node.object.data_map.image.content.pdf.url, width,$node.object.data_map.<name>.content.main_node.object.data_map.image.content.pdf.width, height,$node.object.data_map.<name>.content.main_node.object.data_map.image.content.pdf.height ) ), x, 280, y, 400, width, 200, align, right))}
It works for me.
- Mads
/m
Monday 03 October 2005 8:05:47 am
Hi Mads,
Thanks for your repply.I'll try it that way.
Laurent