Total Pageviews

Monday 4 June 2012

ubuntu下合并多个pdf技巧


需要用到一个叫pdftk的软件
首先:sudo apt-get install pdftk

然后:

pdftk 123.pdf 456.pdf output 123456.pdf

或者

pdftk *.pdf output 123456.pdf

从一个或多个pdf中分出几页并合并:

pdftk A=123.pdf B=456.pdf cat A1-2 B4-5 output 1245.pdf

修复pdf文件:

pdftk 123.pdf output 123fixed.pdf

合并有密码的pdf文件:

pdftk A=123.pdf 456.pdf input_pw A=password cat output 123456.pdf