Page 1 of 1

PDFs not working after upgrade to TNG v12.0

Posted: Thu Jun 14, 2018 4:27 pm
by steven
If you performed the v12 upgrade, you may get errors generating PDFs. The upgrade version I downloaded did not include the rpt_pdfform.php file. Download the full version and extract the file to your server.

Another problem occurs if you install v12 in a folder, for testing, create a PDF and later change the TNG folder name when moving TNG to a live site. The first time a PDF is generated, TNG creates two data and two php configuration files for each font selected in the unifont sub-folders. To fix the error either replace the entire font folder with the new v12 version or open each DejaVu sub-folder and delete the two .dat and two .php files. Once these files are deleted TNG will regenerate the .dat and .php files when you create a PDF.

After the PDF generator is working, individual PDFs may have an improperly formatted title. Chrome will display question marks and Firefox some special characters. This problem has been corrected in v12.0.1. Fixing the problem requires a small change to the rpt_ind.php file. Locate the line below, which will be about line 58.

Code: Select all

$pdf->SetTitle($title, true);
Change the line to the following:

Code: Select all

$pdf->SetTitle($title);
Synology users have an additional problem caused by Synology's indexing file system. When you attempt to create a PDF, without first selecting a font, you will receive an error. This is due to listing Synology’s @eaDir folder as the first (default) font. Select one of the DejaVu fonts first, then create the PDF. This problem has been fixed in v12.0.1 as the filter codes were added for Synology servers.