Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
268 views
in Technique[技术] by (71.8m points)

linux - 将多个PDF文件合并/转换为一个PDF(Merge / convert multiple PDF files into one PDF)

How could I merge / convert multiple PDF files into one large PDF file?

(如何将多个PDF文件合并/转换为一个大PDF文件?)

I tried the following, but the content of the target file was not as expected:

(我尝试了以下操作,但是目标文件的内容不符合预期:)

convert file1.pdf file2.pdf merged.pdf

I need a very simple/basic command line (CLI) solution.

(我需要一个非常简单/基本的命令行(CLI)解决方案。)

Best would be if I could pipe the output of the merge / convert straight into pdf2ps ( as originally attempted in my previously asked question here: Linux piping ( convert -> pdf2ps -> lp) ).

(最好的办法是,如果我可以将合并/转换的输出直接pdf2pspdf2ps (就像我之前在这里提出的问题中最初尝试的那样: Linux管道(convert-> pdf2ps-> lp) )。)

  ask by alcohol translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

考虑到pdfunite是poppler的一部分,它有较高的机会被安装,使用也比pdftk简单:

pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...