Hello,
I am using the following to generate the pdf - it generates an error Failed to generate PDFNULL Fatal error: Uncaught Error: Call to a member function toBrowser() on null
pageMargins = array("top"=>"0.25in","bottom"=>"0.35in","left"=>"0.45in","right"=>"0.45in");
$options = array(
'nodeBinary'=>'C:\Program Files\nodejs\node.exe'
//'chromeBinary' => 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
,'format'=>'Letter'
,'orientation'=>'portrait'
,'landscape'=> $landscape
,'headerTemplate'=>''
,'footerTemplate'=>'<span class=pageNumber></span><span class=totalPages></span>'
//,'noRepeatTableFooter' => true
,'displayHeaderFooter'=>true
,'margin'=>$pageMargins
);
However if I remove the code without the footerTemplate - it works fine. footerTemplate is a valid html - is there another way?
pageMargins = array("top"=>"0.25in","bottom"=>"0.35in","left"=>"0.45in","right"=>"0.45in");
$options = array(
'nodeBinary'=>'C:\Program Files\nodejs\node.exe'
//'chromeBinary' => 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
,'format'=>'Letter'
,'orientation'=>'portrait'
,'landscape'=> $landscape
,'headerTemplate'=>''
,'footerTemplate'=>''
//,'noRepeatTableFooter' => true
,'displayHeaderFooter'=>true
,'margin'=>$pageMargins
);