简体   繁体   中英

PHP - How to combine / merge multiple pdf's

I have some pdf documents on a linux server that I want to combine together to form one document using PHP 5?

Does anyone know if this can be done?

Thanks

您可以调用命令行实用程序pdfjam ,它可以轻松安装在大多数类 Unix 系统上。

use GS

 
 
 
 
  
  
  gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf
 
 
 

taken from: http://mylinuxnotes.wordpress.com/2007/09/19/howto-join-pdf-files/ documentation: https://www.linux.com/news/software/applications/8229-putting-together-pdf-files

pdftk - Why NOT?

pdftk uses too many dependencies (and java!!! :O). For this task you can avoid this by using gs.


pdftk better :D merges faster. i have 600pdf and pdtfk took ~11sec, while gs 6min maybe there is some gs options, but pdftk simpler (bow)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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