简体   繁体   English

使用fpdf将页面前置为PDF

[英]Prepending a page to a PDF with fpdf

I am using fpdf to dynamically build a pdf and add some data to it. 我正在使用fpdf动态创建pdf并向其中添加一些数据。 I now need to merge the created pdf with a different pdf so that the pdf Im merging with (which is a single page) is inserted as page 1 with the rest of the dynamically created pdf after it. 现在,我需要将创建的pdf与其他pdf合并,以便将与合并的pdf(单个页面)作为第1页插入,其余动态创建的pdf则插入到该页面之后。 Any ideas on how to use fpdf to do this? 关于如何使用fpdf做到这一点的任何想法?

There has been a similar question, where a user tries to merge 10 pdf files. 还有一个类似的问题,用户试图合并10个pdf文件。 The answers provide a PHP method and a shell method - either one should work. 答案提供了一种PHP方法和一种Shell方法-两种方法都可以使用。 Have a look! 看一看!

You can try this FPDI . 您可以尝试此FPDI This one is help you i think. 我认为这对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM