Forum Bugs

Blank gray page added at end of PDF file after upgrading to Version 12

cristianq9
Hello,

I have this html : https://q9digital.com/princexml/pdf.html

and an php file where I execute:

exec('prince https://q9digital.com/princexml/pdf.html --no-warn-css --no-parallel-downloads -o pdf.pdf');

resulting this: https://q9digital.com/princexml/pdf.php

On version 11 it was working ok, but after upgrading I get that gray pdf page at end of document.

Please help.

Thx.
mikeday
Have you considered using the Prince PHP wrapper?
cristianq9
Hello,

yes, I tested also using Prince PHP wrapper.

include ('prince.php');
$prince = new Prince('/usr/lib/prince/bin/prince');

$prince->convert_file_to_file('pdf.html', 'test.pdf');

same result, that have an extra page at end of document:
https://q9digital.com/princexml/test.pdf

mikeday
Would you be able to email me (mikeday@yeslogic.com) the HTML + CSS?