English 中文(简体)
Symfony2 将文档合并到 PDF 文档
原标题:Symfony2 merge documents to PDF
  • 时间:2012-05-24 08:44:34
  •  标签:
  • symfony

I need to merge various PDF and Excel documents in one PDF. For example I have: - A.pdf - B.pdf - D.xlsx - E.doc

我所需要的是将所有 4 份文件内容合并到一个结果.pdf 文档中。

是否有捆绑/ 图书馆可以达到这个目的? 或者最好的选择是创建 python 脚本, 从 Symfony2( 如何? ) 调用它来生成这个 pdf?

Any help or clue? Thanks in advance

问题回答

Symfony 提供了一个过程组件, 围绕本地的php exec/ system 函数, 以精美的圆环环环绕 。

查看网站:https://github.com/symfony/Process" rel=“nofollow”>https://github.com/symfony/Process

另一个选择是使用Zend Frame框架中的PDF组件。 我不知道它是否允许PDFss的合并,但应该只是通过文件阅读才知道。

请查看此关于ZendPDF 的语调教题 : < a href="http://www.craftitonline.com/2011/06/pdf-second- with-symfony2-part-ii-zed-option/" rel="nofollow" >http://www.craftittonline.com/2011/06/pdf-symfony2-part-ii-zed-option/

希望这有帮助。

@DucTas 的死链接正在谈论 pdftk , 这是一个可以合并多个 PDF 文档的二进制文件。

使用 apt-get 安装 pdftk 在您的服务器上下载 。

目前,我认为它不存在任何使用 pdftk 的捆包, 但您可以使用 exec () passthru () 等工具来做这个把戏 。

示例:

exec( pdftk doc1.pdf doc2.pdf doc3.pdf output merged.pdf );  




相关问题
Symfony 5, I can t start the server

I develop a symfony project and everything was fine. But since yesterday I can not launch the server: enter image description here The commands symfony server:start and symfony server:stop don t work ...

learning symfony 1.4 will be good when using symfony 2.0?

I know that the architecture is different in symfony 2.0 but im learning 1.4 right now. I wonder if this knowledge i gain about 1.4 will be usable for 2.0 in some extent or will it be a total waste ...

Is symfony 2.0 stable enough to use? [closed]

I wonder if Symfony 2.0 is stable enough to use? Because I ve never used Symfony before. It seems that Symfony 2 is much better than the previous version and I don t want to relearn/recode ...

your experience using symfony 2.0 [closed]

I m going to start a new project that s building web apps from scratch. I have been thinking about using symfony framework for this project. Should I start using symfony 2.0 or stick with 1.4 ? I ...

How to increase the session timeout in Symfony

I would like to know how to increase the session timeout in symfony. Is it enough to only adjust the symfony configuration settings or must I also configure anything in my php.ini file?

How stable or unstable is symfony 2.0? [closed]

Well, I know it s a preview, and I know it says that it s not yet ready for production, and yet I dare ask the question. I need to start building a pretty big application, which is planned to go live ...

热门标签