Jack.Straw Posted March 16, 2007 Share Posted March 16, 2007 Ok, so i've gotten used to using the ezPDF class to create and stream a pdf. Now i've encountered a project where I want the created pdf to be emailed rather than streamed to the browser. I'm comfortable enough with phpmailer to send the file if I can only figure out how to save the PDF. The documentation for the ezPDF class mentions a function called ezOutput... but that seems to do the same thing as ezStream. Can anyone point me in the right direction? Thanks! -Jack Link to comment https://forums.phpfreaks.com/topic/43020-solved-ezpdf-class-how-can-i-auto-save-the-pdf/ Share on other sites More sharing options...
Jack.Straw Posted March 17, 2007 Author Share Posted March 17, 2007 bump... maybe the late croud can assist? Link to comment https://forums.phpfreaks.com/topic/43020-solved-ezpdf-class-how-can-i-auto-save-the-pdf/#findComment-209259 Share on other sites More sharing options...
Jack.Straw Posted March 17, 2007 Author Share Posted March 17, 2007 Up again Link to comment https://forums.phpfreaks.com/topic/43020-solved-ezpdf-class-how-can-i-auto-save-the-pdf/#findComment-209481 Share on other sites More sharing options...
Jack.Straw Posted March 17, 2007 Author Share Posted March 17, 2007 Finally found the answer: $pdfcode = $pdf->ezOutput(); $fp=fopen('<filename>','wb'); fwrite($fp,$pdfcode); fclose($fp); Link to comment https://forums.phpfreaks.com/topic/43020-solved-ezpdf-class-how-can-i-auto-save-the-pdf/#findComment-209493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.