I have a PHP site which prints a permit out to PDF.
1. How can I get it to (also) open up the PDF upon generation? I have it e-mail if required (got that side sorted) but it needs printed as well upon time of generation.
2. The formatting for tables doesn't carry through.
i.e. Coloured table borders don't show up in the PDF, nor do coloured backgrounds.
PDF Generation Code:
$permitView = ob_get_clean();
// $pdf->Output('Permit.pdf', 'S');
$pdfcontent = $pdf->Output('Permit.pdf', 'S');
$permitView is printed into the e-mail html body and $pdfcontent is the attachment. This works fine - except for the formatting issue in the PDF file..
Any assistance would be greatly appreciated.