PDF image problems

Author Message

Carl Worswick

Monday 16 May 2005 5:53:04 am

Hi bit of a newbie so sorry about that but I am struggling with my pdf exports. They work and thankfully, through this excellent posting board, I've managed to get rid of the annoying double-lined spacing. However I now have a few problems with images.

They are displayed when, in my articles, I have attached them as related objects, but when I need to upload a Thumbnail - which is much more common for what I need - the image is not displayed. Any idea what I can do? I assume this is the template image.tpl in pdf/article.

many thanks

Kåre Køhler Høvik

Thursday 19 May 2005 12:24:20 am

Hi, please see : http://www.ez.no/ez_publish/documentation/incoming/pdf_export_tutorial . You basicly dneed to do this :

In override.ini.append.php

[embedImage]
Source=content/pdf/embed.tpl
MatchFile=content/pdf/image.tpl
Subdir=templates
Match[class]=5

And add the template for the image :

{* ------- design/<your design>/override/templates/content/pdf/image.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}

Kåre Høvik

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 18 2025 21:01:53
Script start
Timing: Jan 18 2025 21:01:53
Module start 'layout'
Timing: Jan 18 2025 21:01:53
Module start 'content'
Timing: Jan 18 2025 21:01:54
Module end 'content'
Timing: Jan 18 2025 21:01:54
Script end

Main resources:

Total runtime0.6024 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.7891152.6094
Module start 'layout' 0.00560.0030 740.398439.4141
Module start 'content' 0.00860.5923 779.8125521.7109
Module end 'content' 0.60090.0015 1,301.52348.1875
Script end 0.6024  1,309.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4858160.0002
Check MTime0.00130.2085160.0001
Mysql Total
Database connection0.00100.163210.0010
Mysqli_queries0.556592.3807540.0103
Looping result0.00050.0822520.0000
Template Total0.573895.220.2869
Template load0.00180.293820.0009
Template processing0.572094.945620.2860
Template load and register function0.00030.050110.0003
states
state_id_array0.00070.122810.0007
state_identifier_array0.00080.127520.0004
Override
Cache load0.00140.2397130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.104620.0003
Fetch class attribute name0.00130.217130.0004
XML
Image XML parsing0.00080.133320.0004
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00080.1357150.0001
String conversion0.00000.001340.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs