pdf and images : only a link

Author Message

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

laurent le cadet

Monday 03 October 2005 8:05:47 am

Hi Mads,

Thanks for your repply.
I'll try it that way.

Laurent

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 31 2025 01:27:10
Script start
Timing: Jan 31 2025 01:27:10
Module start 'layout'
Timing: Jan 31 2025 01:27:10
Module start 'content'
Timing: Jan 31 2025 01:27:11
Module end 'content'
Timing: Jan 31 2025 01:27:11
Script end

Main resources:

Total runtime1.1216 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1328151.2109
Module start 'layout' 0.00490.0043 739.3438220.6875
Module start 'content' 0.00921.1115 960.03134,440.4844
Module end 'content' 1.12070.0009 5,400.515611.8516
Script end 1.1216  5,412.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3260160.0002
Check MTime0.00130.1186160.0001
Mysql Total
Database connection0.00060.054510.0006
Mysqli_queries1.034892.2600570.0182
Looping result0.00050.0425550.0000
Template Total1.066595.120.5333
Template load0.00210.188020.0011
Template processing1.064494.901120.5322
Template load and register function0.00140.121510.0014
states
state_id_array0.00250.221710.0025
state_identifier_array0.00180.157520.0009
Override
Cache load0.00180.1582210.0001
Sytem overhead
Fetch class attribute can translate value0.00160.146520.0008
Fetch class attribute name0.00200.175440.0005
XML
Image XML parsing0.00140.125520.0007
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00220.1965160.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs