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

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

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

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in two weeks. Closing the issue.