Fatal error when generating pdf with image

Author Message

Mark Emms

Wednesday 09 May 2007 4:04:12 am

The output to the browser says:

Unknown function: imageinit() in /home/wwwcath/public_html/ezpublish/lib/ezpdf/classes/class.ezpdftable.php on line 1281

All I am trying to do is put an image into a pdf and I'm having problems. Here's the syntax I've been using:

{pdf( 'image', hash( 'src', 'design/news_site/images/PR_CARITAS_logo.gif',
                     'width', 222,
                     'height', 90,
                     'align', 'right' ) )}

in an override for node/view/pdf for a class loosely based upon an article

Really appreciate some pointers!

Thanks

Mark Emms

Wednesday 09 May 2007 11:07:15 am

Syntax, syntax...I should have known better:

{pdf( image, hash( src, 'design/news_site/images/PR_CARITAS_logo.gif', width, 148, height, 64, align,  right ) )}

works fine

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 19 2025 00:22:31
Script start
Timing: Jan 19 2025 00:22:31
Module start 'layout'
Timing: Jan 19 2025 00:22:31
Module start 'content'
Timing: Jan 19 2025 00:22:32
Module end 'content'
Timing: Jan 19 2025 00:22:32
Script end

Main resources:

Total runtime0.9045 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0469152.6406
Module start 'layout' 0.00630.0026 740.687539.4766
Module start 'content' 0.00900.8940 780.1641461.0781
Module end 'content' 0.90290.0015 1,241.24228.1250
Script end 0.9044  1,249.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3710160.0002
Check MTime0.00140.1544160.0001
Mysql Total
Database connection0.00110.117710.0011
Mysqli_queries0.858894.9509520.0165
Looping result0.00050.0531500.0000
Template Total0.875196.820.4376
Template load0.00200.218220.0010
Template processing0.873196.535520.4366
Template load and register function0.00010.015710.0001
states
state_id_array0.00090.098910.0009
state_identifier_array0.00060.069120.0003
Override
Cache load0.00160.1783160.0001
Sytem overhead
Fetch class attribute can translate value0.00110.121110.0011
Fetch class attribute name0.00170.184530.0006
XML
Image XML parsing0.00070.076610.0007
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00110.1161160.0001
String conversion0.00000.000840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs