Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merge / convert multiple PDF files into one PDF [closed]

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

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. 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) ).

like image 211
alcohol Avatar asked Mar 24 '10 12:03

alcohol


People also ask

How do I combine locked PDF files?

If PDF is secured with User Level password It is suggested to use PDF Split & Merge Tool to merge PDF files that are having user-level password security. You only need to enter the password to merge any number of PDF files with the software.

Why won't my PDF files merge?

Remember that Adobe Acrobat is unable to combine PDF files if the total file size is larger than 2 GB. To overcome this limit, we suggest using tools like Soda PDF in order to merge or split your PDF files. Soda PDF has an Online or Desktop app, both of which are easy to use for combining multiple files into one.

How do I create a consolidated PDF?

Select the files you want to merge using the Acrobat PDF combiner tool. Reorder the files if needed. Click Merge files. Download the merged PDF.


1 Answers

Considering that pdfunite is part of poppler it has a higher chance to be installed, usage is also simpler than pdftk:

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

Just make sure you remember to provide out.pdf, or else it will overwrite the last file in your command

like image 195
Hubert Kario Avatar answered Sep 22 '22 15:09

Hubert Kario