使用Ghostscript 连接pdf文件·

贡献人:Scott Nesbitt
来源:http://software.newsforge.com/article.pl?sid=04/06/09/1844259&tid=79&tid=2&tid=27&tid=31

使用 Ghostscript 来连接pdf文件,只需要下面的代码:

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

如果你对Ghostscript不是很熟悉,下面的说明有助于你理解上面的东西。

* gs
– 启动Ghostscript
* -dBATCH
– #这个选项让Ghostscript 在忙完后自动退出,要不然你就要帮一下忙了。
* -dNOPAUSE
– 让Ghostscript 连续完成连接文件,而不被中止。
* -q
— 让 Ghostscript 工作时,不显示信息
* -sDEVICE=pdfwrite
– 让Ghostscript 使用内置的 PDF writer 处理文件
* -sOutputFile=finished.pdf
— 告诉 Ghostscript 你要得到的文件的文件名

Leave a Reply

Spam Protection by WP-SpamFree