PDFs not working in TNG V11

steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

PDFs not working in TNG V11

Post by steven »

When I tried to generate a PDF with TNG I received the following error:

Warning: Declaration of UFPDF::_dounderline($x, $y, $width, $txt) should be compatible with FPDF::_dounderline($x, $y, $txt) in /volume1/web/syno/ufpdf.php on line 20 FPDF error: Some data has already been output, can't send PDF file.
Darrin found the problem which only occurs if you are running php version 7.0 or higher. Locate the code below in the fpdf.php file. (About line 1489 in V11.1.2)

Code: Select all

function_dounderline($x,$y,$txt)
and replace with the code below:

Code: Select all

function_dounderline($x,$y,$width,$txt)
Alternately you can download the patched file here:
fpdf.zip
You do not have the required permissions to view the files attached to this post.
Last edited by steven on Tue Feb 06, 2018 8:32 am, edited 1 time in total.