Closed (fixed)
Project:
Printer, email and PDF versions
Version:
5.x-4.6
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2009 at 23:21 UTC
Updated:
21 May 2009 at 12:25 UTC
Context :
======
With tcpdf 4.6.007
Logo size is 401px × 68px
Setting paper size is small enough : A7 in my case
Try to click on pdf icon to print a node leads to a blank page and the apache logs are showing a segfault.
In print_pdf_class.inc to insert :
$print['logo'] = '';
near line 54 is solving the problem but we have no logo.
Suggestion : resize the logo first using gd to make it fit with the paper size.
That bug looks like a tcpdf problem at dealing with images.
Comments
Comment #1
jcnventuraHi,
You don't need to change the class to remove the logo.. It's possible to specify a print-module specific logo, just create a smaller logo and configure the module to use it and you should be OK.
TCPDF has lots of problems dealing with images, so this is nothing new.. Please report the problem to Nicola in TCPDF's issue queue.
João
Comment #2
jcnventuraNo further info in two weeks. Closing the issue.