Generate PDF
Posted: Tue Jun 18, 2013 7:54 pm
I tried to use TCPDF from within a UDT. But so far I'm not able to modify the Content-Type. These lines at the top of my UDT (and using a template containing only {content}) don't alter the Content-Type:
@ob_clean();
@ob_clean();
header('Content-Type: application/pdf');
Do I need to implement this with a module instead of a UDT? Or is there a simpler solution? I found the "PDF Generator" module, but that seems to be stale and not compatible with 1.10...
@ob_clean();
@ob_clean();
header('Content-Type: application/pdf');
Do I need to implement this with a module instead of a UDT? Or is there a simpler solution? I found the "PDF Generator" module, but that seems to be stale and not compatible with 1.10...