Hi
I am having an error in creating a PDF using DomPDF from my details view.
I have tested DOMPDF in a simple script (see code below) and it works as intended, but I cannot generate the pdf within
This script being executed from /libraries/fabrik/vendor/vendor
In my J3 application I can run mysite.com/my-menuitem/details/7/16 - this executes as intended, but the following throws an error:
mysite.com/my-menuitem/details/7/16?format=pdf
Chrome reports ERR_INVALID_RESPONSE
This is probably just a case of getting paths correct, but I cannot see where the adjustments need to be made. I did run composer as directed on github,
Thanks
Miles
I am having an error in creating a PDF using DomPDF from my details view.
I have tested DOMPDF in a simple script (see code below) and it works as intended, but I cannot generate the pdf within
PHP:
require 'vendor/autoload.php' ;
use Dompdf\Dompdf;
$dompdf = new Dompdf();
$dompdf->loadHtml('<h1 style="color:#f00">Test PDF Render</h1>');
$dompdf->setPaper('A4', 'landscape');
$dompdf->render();
$dompdf->stream("Generate 3", array('Attachment'=>0));
In my J3 application I can run mysite.com/my-menuitem/details/7/16 - this executes as intended, but the following throws an error:
mysite.com/my-menuitem/details/7/16?format=pdf
Chrome reports ERR_INVALID_RESPONSE
This is probably just a case of getting paths correct, but I cannot see where the adjustments need to be made. I did run composer as directed on github,
Thanks
Miles