Page 1 of 1

Generate PDF

Posted: Tue Jun 18, 2013 7:54 pm
by stefhoesli
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...

Re: Generate PDF

Posted: Fri Jun 21, 2013 7:18 pm
by Rolf
I will ask Silmarillion about http://dev.cmsmadesimple.org/projects/pdf

Re: Generate PDF

Posted: Wed Jul 03, 2013 2:34 pm
by stefhoesli
That's great, thanks a lot!

Re: Generate PDF

Posted: Wed Jul 17, 2013 12:37 pm
by stefhoesli
Any news here...?

Re: Generate PDF

Posted: Thu Jul 18, 2013 7:44 am
by Rolf
Yeah I got in contact with Sill.
He tries to update the module a.s.a.p. but his spare time is limited at the moment... Thanks for being patient ;-)

Re: Generate PDF

Posted: Mon Aug 12, 2013 8:01 pm
by stefhoesli
Sure, I'm Swiss. We invented patience... ;-)

Re: Generate PDF

Posted: Thu Sep 05, 2013 2:38 pm
by Duketown
Hi,

I've been using FPDF in a couple of modules that I build and that has an extensive set of functions. Don't know if it would be easy to implement in or as an UDT, in a module however it is great.
If I can help you out with FPDF, please drop me a PM.

Regards,

Duketown