分页: 1 / 1
如何拼接pdf文档?
发表于 : 2010-06-04 8:28
由 罗非鱼
可否用命令行来拼接pdf文档?
cat ~/test/001.PDF >> ~/test/total.pdf
cat ~/test/002.PDF >> ~/test/total.pdf
拼完后, ~/test/total.pdf中只有 ~/test/002.PDF
反复测试多次都是这样。
Re: 如何拼接pdf文档?
发表于 : 2010-06-04 8:44
由 BigSnake.NET
不可以
Re: 如何拼接pdf文档?
发表于 : 2010-06-04 12:26
由 eexpress
可以用pdftk拼。也是cli啊。
lol
Re: 如何拼接pdf文档?
发表于 : 2010-06-04 12:56
由 aerofox
如果不用考虑书签,那么 pdftk 是最好的选择。
Re: 如何拼接pdf文档?
发表于 : 2010-06-05 12:23
由 罗非鱼
The commandline utilities, Ghostscript and PDFtk, will do what you want.
Code:
gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -sOutputFile=[output file] [input files]
or
Code:
pdftk [input files] cat output [output file]
In the above commands, you need to insert the names of the input and output files. When combining a large number of PDF files, it may be easiest to place them in an empty directory and use *.pdf as the input files.