When you need to decrypt PDF and then merge password protected PDF files as a new one, maybe you can have a free trial of software VeryPDF PDF Toolbox Command Line. By this software, you can remove password from PDF by command line , remove pages from PDF file, merge PDF files and so on so forth. In the following part, I will show you how this powerful software works. Own one in hand, many others can be saved.
Step 1. Download PDF Toolbox
- When downloading, you may find that there are only Server and Developer version available. If you do not need to use this software for developing, please use the server version. Even if it is server version but it also works under computer or laptop.
- When downloading, please download the right version as there are three version stated on our website: Mac, Linux and Windows. Here I will take the Windows version for example.
Step 2. Decrypt PDF and merge PDF
- When you run the conversion, please according to the usage and examples.
- Usage:pdftoolbox <input files> [options] <-outfile output >
- When you need remove password from PDF by PDF Toolbox, please refer to the following command line template.
pdftoolbox sample_secured.pdf -inputpassword 456 -outfile "_decryptpdf_out.pdf"
By the above command line, you can make the smaple_secured.pdf to normal PDF file. In the example, 456 stands for password.
-inputpassword : remove open password when merge or decrypt PDF.
-outfile : specify an output file name.
Note: this software will remove owner password directly. When you need to remove open password, you need to know it and have the right to do then please use this software to remove password.
- When password has been removed, you can merge them casually. When you need to merge PDF file, please refer to the following command line template.
pdftoolbox in1.pdf in2.pdf -merge -outfile out1.pdf
or (using handles):
pdftoolbox A=in1.pdf B=in2.pdf -merge A B -outfile out1.pdf
or (using wildcards):
pdftoolbox *.pdf -merge -outfile combined.pdf
merge : merge multiple PDF files into one PDF file. You can use handles and handle arguments to specify page ranges, rotate pages, change order when merge PDF.
By this software, you can also do lots of things like you can merge PDF file then set password for output, add layer to PDF and others. If you need to know more about it, please pay more attention to our knowledge base, we will introduce them one by one. And during the using, if you have any question, please contact us as soon as possible.