在 FOP 生成的 PDF 文件中包含 PDF 文件

发布于 2024-08-19 00:21:36 字数 95 浏览 2 评论 0原文

我正在使用 FOP 生成 PDF 文件。

在 FOP 生成的 PDF 中包含另一个 PDF 文件或使用 PHP 将多个 PDF 文件合并在一起的最佳方法是什么?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

固执像三岁 2024-08-26 00:21:36

使用 FOP 创建后,作为一种后处理,我建议查看 PDF 工具包< /a>.用它自己的话说:

如果 PDF 是电子纸,那么 pdftk 就是电子订书机、打孔器、活页夹、秘密解码器环和 X 射线眼镜。 Pdftk 是一个简单的工具,用于处理 PDF 文档的日常事务。

我在一些需要将 FOP 的输出重新排序为可打印页面顺序的项目中使用了它。

不幸的是,它既不是 Java 也不是 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...

寻找我们的幸福 2024-08-26 00:21:36

我建议你
要么使用一些命令行工具,例如 http://sourceforge.net/projects/pdfsam/
或使用 fpdi 类合并 pdf - http://www.setasign。 de/products/pdf-php-solutions/fpdi/

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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文