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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Jack.Straw Posted March 17, 2007 Author Share Posted March 17, 2007 Up again Quote Link to comment 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.