I need to add pages in an existing PDF document after the first page and as last page. I used to implement it with Zend_Pdf but found out, that it can only handle PDFs of which the cross-reference table isn't compressed to a stream (a feature that was introduced in PDF version 1.5).
So I'm looking for a PHP PDF-Library which can modify existing PDF documents with objects and an xref table stored in a stream as described in ISO-32000-1 (which was based on PDF-1.7).
- TCPDF cannot modify, only in combination with FPDI (and FPDI can only handle PDF-Version up to 1.4 in the free version)
- Zend_PDF (as mentioned above) can only handle files to PDF Version up to 1.4. Maybe it would be an idea to try the Zend_Pdf Version from ZF2 from github?
- FPDF can only handle files to PDF Version 1.4 as I found out
Are there any other PHP PDF libraries for my needs?