linux下合并pdf文件

1.Install  “ghostscript” and “pdftk”:
apt-get install gs pdftk
2.Combile files with the following command:
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output. -dBATCH input1. input2.

Here “output.pdf” is the name of the new output file,  and “input1.pdf” , “input2.pdf”, etc., are the files to be combined.1.安装好 ghostscript 和 pdftk 这两个软件:

1.安装ghostscript和pdftk:

apt-get install gs pdftk

2.

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output.pdf -dBATCH input1.pdf input2.pdf

其中output.pdf是要生成的pdf文件。input1.pdf和input2.pdf是要合并的文件,可以更多。按照input.pdf的顺序合并。

Related posts



发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

Comment

You may use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>