[nycphp-talk] Splitting multi-page PDFs
Ajai Khattri
ajai at bitblit.net
Fri Mar 14 17:06:48 EDT 2008
On Fri, 14 Mar 2008, Michael B Allen wrote:
> Zend_Pdf from Zend Framework can import PDFs. But I've never used it
> so I have no idea if it can do what you want or if it's worth using.
Actually this should be easy to do with Zend_pdf. Loading the PDF gives
you a PHP array of "PDF page" objects. Create another new PDF object and
then loop through the pages of the already loaded PDF object, adding each
page to the second object, writing the new PDF out (with appropriate
filename), then removing the page you just added to make way for the next
one.
--
Aj.
More information about the talk
mailing list