Merge/Split PDF files in Linux

First install pdftk (pdf toolkit). Pdftk runs from the command line which means you should unpack the software into a directory that you can access easily. I put the file into c: for testing purposes along with two pdfs called 123.pdf and 456.pdf.

If you run pdftk without parameters you get a quick output that details the most important parameters. Lets take a look at the possible operations:

Merge pdf files:

pdftk 123.pdf 456.pdf output 123456.pdf

This tells pdftk to merge the two pdf files 123.pdf and 456.pdf into a new pdf called 123456.pdf. If you want to merge more than two pdf files at once you simply add them between pdftk and output. You could also use wildcards to merge many or all pdfs with a certain name.

pdftk *.pdf output 123456.pdf

Split pages from one or more pdfs:

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

Repair a pdf:

pdftk 123.pdf output 123fixed.pdf

Merge encrypted pdfs:

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

Pdftk offers several more possibilities which are worth a look if you want to do something that I did not describe on this website. A version for Linux and Windows is available.

Read More:

Pdftk Homepage

原文:http://www.ghacks.net/2007/10/02/merge-pdf-files/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值