开发者

Including a PDF file in a PDF file generated by FOP

I'm using FOP to generate PDF files.

What's the best way to either include another开发者_运维技巧 PDF file in a PDF generated by FOP or to cook multiple PDF files together using PHP?


After creation with FOP, as kind of post-processing, I'd suggest to take a look at the PDF toolkit. In it's own words:

If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents.

I used this in some projects where I needed to re-sort FOP's output into a printable page order.

Unfortunately it's neither Java nor PHP, but it's useful in so many ways, that I think it needs mentioning nonetheless. And it's a small standalone, that you can perhaps simply set in your server's path...


i would suggest you either use some commandline tool e.g. http://sourceforge.net/projects/pdfsam/ or combine the pdfs using the fpdi class - http://www.setasign.de/products/pdf-php-solutions/fpdi/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜