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
Comment #1
krema007 commentedHola 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.
Comment #2
aasarava commentedIf 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.
Comment #3
isoevent commentedI'm getting the same problem.
Where can I find TCPDF v5.0.90?
Comment #4
aasarava commentedSorry, 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
Comment #5
isoevent commentedThanks it solved the problem.
Now trying to add barecode to my pdf
Comment #6
IgnacioAlonso commentedv5.9.090: http://sourceforge.net/p/tcpdf/code/ci/d6c918eb8845ca91427e53d93d8ada86e3cd2afd/
All version: http://sourceforge.net/p/tcpdf/code/ci/c7c8e26f67041b45d3d2b655064c8d8c26e3d7c0/log/
Comment #7
mr.york commentedDuplicated: #1856428: Error "Strict warning: Declaration of W2PDF::setHeaderData()"
Comment #8
angybab commentedHey how to you use git to download the code. sorry an a newbab.
Comment #9
vm commentedgit docs = http://git-scm.com/documentation