I've just integrated the PDF export package in my Koolreport installation. But sadly, when I run and export my report to PDF, the underlying PhantomJS executable runs for a long time and then fails with the following result (which I extracted through my debugger from the
$result variable in the
TypeError: null is not an object (evaluating 'document.body.style') http://localhost/reportrun.php?reportName=SimpleReport&reportParameterSource=input&VMNameFilter=Test¶meterFileName=MAQ.json&reportExport=pdf:24 in init :2 :3 TypeError: null is not an object (evaluating 'viewSettings.header') phantomjs://code/pdf.js:202 in processViewSettings phantomjs://code/pdf.js:280 in renderAndExit phantomjs://code/pdf.js:294
Now as far as I understand it, the scripts used for the PDF export are looking for the body element as well as div elements with the classes
page-footer respectively. My reports do not have any of these tags in their view files, as they are added by a wrapper file which handles the report execution and is absolutely vital.
Is there a way to circumvent, or alternatively inject, these required HTML tags?