ded Posted April 30, 2009 Share Posted April 30, 2009 Good Morning, I want to allow the user to be able to click a link to print webpage information into a PDF document. The webpage information is created from an sql database. Ideas? Regards, DED Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted April 30, 2009 Share Posted April 30, 2009 well i dont know if PEAR has the functionality probably has http://pear.php.net/package/File_PDF but the ZEND framework has it zend_pdf $pdf = new Zend_Pdf(); $pdfString = $pdf->render(); header('Content-type: application/pdf'); // Add new page $pdf->pages[] = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); // Add new page $pdf->pages[] = $pdf->newPage(Zend_Pdf_Page::SIZE_A4); $pdfPage = $pdf->pages[1]; $pdfPage->drawText('Hello world!', 72, 720); echo $pdfString; exit; usualy people implament this whole directory structure bootstrapped with stuff but you can take teh zend framework library and put it in ur site and just pick classes from it. http://framework.zend.com http://framework.zend.com/manual/en/zend.pdf.html 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.