I manage a Drupal 7 website. I do not know many of the underlying technical details; they are managed by my university's IT services.

We have installed the webform 2 pdf 7.x-3.0, together with the current version of TCPDF (6.0.20) but I have been unable to get it to produce an actual pdf when I submit a webform and click on "Download PDF". Instead, on Firefox, I get what I believe is the "white screen of death"; in IE, I get a 500 error.

According to this page https://drupal.org/node/1159892 there may be two fixes. One we have tried and does not work, which is "in the webform2pdf.class.inc changing all instances of 'protected' to 'public'."

The other is to use the "correct" TCPDF version.

According to this page https://drupal.org/files/webform2pdf.install.fatal_.error_.patch "TCPDF version should be between 4.5.000 and 5.9.209".

Is this true? If so where do we find an earlier version of TCPDF than the one we have?

Many thanks.

Comments

kmossman’s picture

BTW we have Webform 7.x-3.18 installed and Libraries enabled.

kmossman’s picture

My IT support replaced the new TCPDF with version tcpdf_4_9_018. Webform 2 PDF works now.

mixael’s picture

Version: 7.x-3.0 » 7.x-3.x-dev

I've tried to get working with tcpdf v. 6_... but it was unlucky.
Then downloaded v. 5 sourceforge.net - tcpdf and now it's OK.
link to 5.9.209

mylocaltrades’s picture

version tcpdf_4_9_018 also worked for me too

frank ralf’s picture

The above direct link to the 5.9.209 version is correct but somehow doesn't work for me:
http://sourceforge.net/code-snapshots/git/t/tc/tcpdf/code.git/tcpdf-code...

Alternatively open https://sourceforge.net/p/tcpdf/code/ci/a48f9f174c2575634bec1b2b4bbcd3ee... and click on "Download Snapshot".

EDIT:
The module does work with TCPDF version 5, but not version 6.

mr.york’s picture

The devel version works with TCPDF v6.
I know once problem:
#1856428: Error "Strict warning: Declaration of W2PDF::setHeaderData()"

mr.york’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.