PDF not generated correctly Ver 2

continuing from:

PDF not generated correctly

Hi I have developed the same symptoms.

Server
Debian 9
Apache2
php 5.6.30…

Changes to system:
Normal updates to OS last at 2017-12, but problem started 2017-10-20 (y-m-d)
while using IP 1.5.2 now upgraded to 1.5.5 with the same problem.

Problem statement:
1.) PDFs were being created correctly for a few months.
2.) With no deliberate change to IP.
3.) As per the preceding post examples
All pdf’s became left justified.
Alternate lines are no longer highlighted differently.
Bold characters are not bold.

Observation:

  1. Content ok,
  2. Formatting lost.

Corrective actions:

as per Customising Templates

in
application/helpers/pdf_helper.php
Place

print_r($html);exit; at line 98 for invoice templates.

(
PS
my one was line 103, before

$CI->load->helper('mpdf');

)

If I tried to download a pdf an html version of the pdf was displayed,
other than the logo not showing (assume hyper link not created for pdf)
the layout was correct in html view.

I also deleted the logo with the same results when the pdf was generated.

I reset user permissions (as test)
User: www-data
Group: www-data

u+rwx
g+rx
o+rx

Any suggestions.

Regards
Eric

3 posts were merged into an existing topic: PDF not generated correctly