Strict warning: Declaration of W2PDF::setHeaderData() should be compatible with TCPDF::setHeaderData($ln = '', $lw = 0, $ht = '', $hs = '', $tc = Array, $lc = Array) in include_once() (line 9 of /var/www/intranet/sites/all/modules/webform2pdf/webform2pdf.class.inc).

If it does do anything I get a blank PDF

Comments

krema007’s picture

Hola bazzly,
La version que me he descargado de weforms2pdf es la 7.x-3.0. y me salía un error parecido.

Intenta modificar la cabecera de la función setHeaderData() del archivo
../sites/all/modules/webform2pdf/webform2pdf.class.inc por esta otra:

public function setHeaderData($ln=array(),$ls=array(),$hs='', $hsa='',$tc=array(0,0,0),$lc=array(0,0,0)){...........}

Espero que te sirva..

Saludos.

aasarava’s picture

If this helps anyone: In order to get PDFs to work, I needed to check TCPDF out of git and manually checkout the commit for v5.0.90. It seems the API in TCPDF has changed in recent versions and webform2pdf is not up to date.

isoevent’s picture

I'm getting the same problem.
Where can I find TCPDF v5.0.90?

aasarava’s picture

Sorry, I meant v5.9.090. You'll have to use git to download the code and then check out the older version.

git clone git://git.code.sf.net/p/tcpdf/code tcpdf-code
cd tcpdf-code
git checkout d6c918e

isoevent’s picture

Thanks it solved the problem.

Now trying to add barecode to my pdf

mr.york’s picture

Status: Active » Closed (duplicate)
angybab’s picture

Hey how to you use git to download the code. sorry an a newbab.

vm’s picture