Forums / Setup & design / Fatal error when generating pdf with image

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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/Exponential/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