You probably have many PDF documents stored in your computer. One of the best ways to organize them is to combine PDF files. When you combine/merge multiple PDF files into a single PDF, it is easier to manage, access, and back up. PDFtk Server is a command line tool that allows you to easily combine multiple PDF files into one.
PDFtk stands for “PDF Toolkit.” PDFtk Server allows you to merge PDF documents, split PDF pages into new documents, rotate PDF pages, decrypt and encrypt, update metadata, apply watermarks, and much more. It is free, open source software available for Windows, Linux, and macOS. Best of all, it does not require Acrobat or any other Adobe products to work.
Note: there is also a PDFtk Free, applicable only for Windows. It’s a graphical interface that allows you to add multiple PDF files and merge them into one.
For Linux (using Ubuntu), you can install it with the command:
sudo snap install pdftk
sudo apt install pdftk
PDFtk is also available in most repositories, so you can easily install it from your package manager/Software Center.
cd ~/pdf-directory
pdftk file1.pdf file2.pdf file3.pdf cat output newfile.pdf
That is all it takes. Be sure to check the new PDF file to be sure all of the new pages display correctly. The merging process is seamless, painless, and should work on any regular PDF files you have.
To combine multiple documents in a directory without listing each one, use wildcards (*):
pdftk *.pdf cat output newfile.pdf
As an added bonus, PDFtk can perform many other tasks. For example, to split a PDF file’s pages into multiple documents, run the following command:
pdftk newfile.pdf burst
This will split the document into single pages that you can manipulate as you see fit.
With PDFtk, you can even merge certain pages from multiple documents into one new document. To do so, enter the following command:
pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf
In this case, “A” and “B” are used as “handles” for the names of your documents. You can use as many as you need.
To encrypt your new PDF file, use the following command:
pdftk mydoc.pdf output mydoc_encrypted.pdf owner_pw foopass
where “foopass” is the password you use to encrypt the file. Change to a more secure password for your own usage.
On the other hand, if you have an encrypted PDF file, you can also decrypt it with PDFtk:
pdftk mydoc_encrypted.pdf input_pw foopass output mydoc_decrypted.pdf
This only touches the surface of the many functions of PDF manipulation available with pdftk. You can use pdftk --help or access the online examples to get a good overview of the command.
Note: here is another way to remove passwords from PDF files in Windows.
While you can use the command line version of PDFtk on Windows, PDFtk Free offers an easier-to-use graphical interface. The great part is that both PDFtk Server and PDFtk Free come together in a single installation, so you get both. Feel free to use either option. The following instructions, though, apply to PDFtk Free.
The free version doesn’t have quite as many features but does still merge PDFs together. The premium upgrade is just $3.99 if you want to switch.
Press “Add PDF” to add the PDF files you want to merge. Files are added to the list in the order you select them, but don’t worry about the order right now.
Once added, simply drag and drop the files to create the order you want. You can also double-click the “Pages to Copy” field to select any pages you want to copy in your merged PDF. Use the “Copy Selection” and “Remove Selection” buttons to copy a selection to add it twice or remove a selection.
When you’re ready, press “Create PDF” at the bottom of the window. You can also choose to open the newly created PDF or show the location of the PDF in the “Afterwards” drop-down menu.
Tip: If you are looking for ways to modify the text in a PDF file, here are some ways you can do it.
Another option is to use PDFTK Builder. It’s another version of PDFtk that works similarly but is not created by PDFtk. Multiple versions of PDFTK Builder exist online, but one of the best is the portable app version.
If you find PDFtk too complicated for you, another application you can use to merge PDF files is PDF Arranger.
PDF Arranger is a fork of the old pdfshuffler and small python-gtk application that allows the user to merge or split PDF documents and rotate, crop and rearrange their pages using a simple graphical interface.
You can install PDF Arranger from the Software Center or your package manager. For Windows, you can download the msi installer here.
Merging PDFs is great and all, but there’s so much more PDFtk is capable of. Naturally, PDFtk Free is limited, but one thing you can still do in both PDFtk Server and PDFtk Free is split PDFs.
For Linux, you’ll need to remove pages from the output file. You can remove as many pages as you need. Use the following as an example:
pdftk A=in1.pdf cat A1-12 A14-end output out1.pdf
Other things you can do with PDFtk Free include:
Other things you can do with PDFtk Server (both Linux and Windows) include:
As you can see, this seemingly simple tool can do so much more than merge PDF files. Once you get the hang of the commands, it’s a great all-in-one PDF utility.
If you already use LibreOffice as a Microsoft Office alternative, just use LibreOffice Draw to combine your files. While Writer doesn’t let you do this, Draw does. If you prefer using LibreOffice Writer over Microsoft Word, check out this keyboard shortcuts guide.
While this post focuses mainly on PDFtk, it’s not your only option. It’s just easy to use and highly effective. But, if you’d rather branch out and try something else, give these tools a try:
The most difficult part is typing the entire file path name. Open the GUI version, add your files to it, then drag and drop them into the command prompt one at a time to copy the file path over.
While command-line examples have been linked above, the PDFtk Server Manual gives you a more comprehensive look at the various commands to work with all of the features.
Yes, but there are premium options available. You can buy PDFtk Pro for the full GUI version, but that’s not necessary to merge or split PDFs.
Also, if you need commercial support for use in a business, you can purchase a one-year service agreement for $79/year.
While PDFtk isn’t going to try to steal your information or anything similar, it’s not the best tool for encrypting PDF files. It only supports up to 128-bit encryption, which is better than nothing but still not optimal for highly sensitive information like banking details. Ideally, you want at least AES 256-bit encryption instead.
You can still use PDFtk or any other tool in this post to combine PDF files, then use another tool to encrypt them.
Subscribe to our newsletter!Our latest tutorials delivered straight to your inbox
Crystal Crowder - Staff WriterCrystal Crowder has spent over 15 years working in the tech industry, first as an IT technician and then as a writer. She works to help teach others how to get the most from their devices, systems, and apps. She stays on top of the latest trends and is always finding solutions to common tech problems.
Comments are closedHow to Convert PDF to Google Docs
5 Ways to Remove a Watermark From PDF Files for Free
How to Create a PDF With Fillable Forms in LibreOffice
7 Free Apps to Convert a PDF to a Fillable Form
How to Add PDF Shortcut to Home Screen on Android and iPhone
Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.