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) ).
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With