PDFs not working in TNG

Post Reply
Posts: 32
Joined: Sun Oct 01, 2017 3:08 pm

PDFs not working in TNG

Post by Steve » Thu Feb 01, 2018 3:47 pm

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)

Code: Select all

and replace with the code below:

Code: Select all

Alternately you can download the patched file here:

(10.34 KiB) Downloaded 22 times

Last edited by Steve on Tue Feb 06, 2018 8:32 am, edited 1 time in total.

Post Reply