Forums / Setup & design / image not shown in PDF

image not shown in PDF

Author Message

fabian schoen

Monday 23 October 2006 4:00:21 am

Hi

I've found some forum messages for similar problems, but in the most of them, they see the URL instead of the image in the PDF. Actually I would be happy if I would see the url ;-)

I started with this PDF tutorial --> http://ez.no/products/ez_publish/...ntation/incoming/pdf_export_tutorial

Added override.ini.append.php:

[item_pdf]
Source=node/view/pdf.tpl
MatchFile=full/item_pdf.tpl
Subdir=templates
Match[class_identifier]=item

[item_image_pdf]
Source=content/pdf/embed.tpl
MatchFile=full/item_image_pdf.tpl
Subdir=templates
Match[class_identifier]=image

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

Now I try to show an image with the following code:

{pdf(image,hash('src',$itemImage.object.data_map.image.content[original].full_path|ezroot,
                      width,30,
                      height,40,
                      border,3)) }

The generated PDF doesn't show the image or at least the URL.

At first I thought, that the URL path is incorrect, but the code below show me the correct value:

{pdf(text,$itemImage.object.data_map.image.content[original].full_path|ezroot|wash(pdf) )}

I enabled the debug features as the next step.
The output in the file looks from my point of view OK
notice.log:

...
[ Oct 19 2006 21:26:37 ] [84.227.234.85] :
PDF: Changed font.
[ Oct 19 2006 21:26:37 ] [84.227.234.85] eZPDF::modify:
PDF: Added Image
...

warning.log:

...[ Oct 19 2006 21:26:37 ] [84.227.234.85] Timing Point: Module start 'content'
[ Oct 19 2006 21:26:37 ] [84.227.234.85] PHP:
Undefined index: align in ... /lib/ezpdf/classes/class.ezpdftable.php on line 1201
... 

error.log: there is no entry for this time period.

Did I do something completly wrong?
What can I do to isolate the problem?

Any help is appreciated.

thanks and regards
fabian
ezPublish 3.6.10

fabian schoen

Thursday 26 October 2006 1:40:27 am

<b>SOLVED</b>

The error was the <b>ezroot</b>.

It works without it

{pdf(image,hash('src',$itemImage.object.data_map.image.content[original].full_path,
                     width,30,
                     height,40,
                     border,3)) }

regards
fabian

eZ debug

Timing: Jan 31 2025 06:01:53
Script start
Timing: Jan 31 2025 06:01:53
Module start 'content'
Timing: Jan 31 2025 06:01:53
Module end 'content'
Timing: Jan 31 2025 06:01:53
Script end

Main resources:

Total runtime0.1974 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9219180.8438
Module start 'content' 0.00670.0078 768.765693.8672
Module end 'content' 0.01450.1828 862.6328525.2500
Script end 0.1973  1,387.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.7001200.0002
Check MTime0.00130.6559200.0001
Mysql Total
Database connection0.00080.399810.0008
Mysqli_queries0.142872.33371410.0010
Looping result0.00140.73441390.0000
Template Total0.182492.410.1824
Template load0.00080.380510.0008
Template processing0.181692.041110.1816
Override
Cache load0.00050.271110.0005
Sytem overhead
Fetch class attribute can translate value0.00090.461010.0009
XML
Image XML parsing0.00020.113010.0002
General
dbfile0.01095.5239200.0005
String conversion0.00000.003530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs