PDF is probably the most steadily used file format everywhere in the world. This file format will not be solely used for private paperwork but in addition for skilled paperwork. At occasions, you may need a number of inter-related PDF information, and also you want to combine all of them as a single PDF file. Subsequently, as we speak we might be explaining to you the completely different strategies of merging PDF information on the command line.

Word: All three strategies of merging PDF information by way of the command line have been demonstrated on Linux Mint 20.

Strategies of Merging the PDF Information on the Command Line:

For utilizing the “pdftk” utility for merging PDF information by way of the command line in Linux Mint 20, we are going to undergo the next collection of steps:

We’ve got two PDF information in our Residence listing named “PDF1.pdf” and “PDF2.pdf”. These information are highlighted within the picture proven beneath:

How to Merge PDF Files on the Command Line? – Linux Hint

Double click on on the primary file to view its content material, as proven within the following picture:

How to Merge PDF Files on the Command Line? – Linux Hint

Now double click on on the second file to view its content material in addition to proven within the picture beneath:

How to Merge PDF Files on the Command Line? – Linux Hint

Our purpose is to merge these two information for which we are going to launch our Linux Mint 20 terminal by clicking on its icon as proven within the following picture:

How to Merge PDF Files on the Command Line? – Linux Hint

Now we have now to put in the “pdftk” utility by operating the next command in our terminal:

$ sudo apt-get set up pdftk

How to Merge PDF Files on the Command Line? – Linux Hint

Since you might be putting in a brand new bundle in your Linux system, subsequently, your terminal will ask you for a affirmation, which you’ll be able to present by typing “Y” in your terminal after which urgent the Enter key as proven within the picture beneath:

How to Merge PDF Files on the Command Line? – Linux Hint

As soon as the “pdftk” bundle has been efficiently put in in your system, your terminal will hand you over the management again to be able to simply execute the following instructions as proven within the following picture:

How to Merge PDF Files on the Command Line? – Linux Hint

Now if you end up all set to make use of the “pdftk” bundle to merge your information, you need to execute the below-mentioned command to attain this purpose:

$ pdftk PDF1.pdf PDF2.pdf cat output PDF3.pdf

Right here, you may point out as many PDF information earlier than the “cat” key phrase that you simply wish to merge separated by an area. The file identify adopted by the “output” key phrase would be the identify of a newly created PDF file, which might be an built-in model of all of the information which are talked about earlier than the “cat” key phrase. It signifies that operating this command will create a brand new PDF file named “PDF3.pdf” which could have the merged contents of each the information “PDF1.pdf” and “PDF2.pdf”.

How to Merge PDF Files on the Command Line? – Linux Hint

After operating this command, you may confirm if a merged PDF file has been created or not by going to your Residence listing. Right here, it is possible for you to to search out “PDF3.pdf” as highlighted within the following picture:

How to Merge PDF Files on the Command Line? – Linux Hint

Now double click on on this newly created PDF file to make sure if it has the merged contents of “PDF1.pdf” and “PDF2.pdf” or not as proven within the pictures beneath:

How to Merge PDF Files on the Command Line? – Linux Hint

How to Merge PDF Files on the Command Line? – Linux Hint

Methodology # 2: Modified Utilization of the “pdftk” Utility:

As we have now already talked about within the identify of this methodology that it’s merely a modified model of the “pdftk” methodology; subsequently, we don’t want to put in any new bundle this time. This methodology is used while you wish to merge all of the PDF information current in any listing, and also you wish to save your self from the hassle of mentioning the names of all these information individually. This may be accomplished by operating the next command in your terminal:

$ pdftk *.pdf cat output PDF3.pdf

How to Merge PDF Files on the Command Line? – Linux Hint

Right here, the “*” image earlier than the PDF extension signifies that you simply wish to merge all of the PDF information current within the present listing, whereas PDF3.pdf is the output file the place all your PDF information might be merged. After operating this command, you may confirm its output in the identical method as we did within the methodology above.

Methodology # 3: Utilizing the “poppler” Utility:

That is one other methodology of merging PDF information in Linux Mint 20 which can be utilized as follows:

First, you must set up the “poppler” utility with the next command:

$ sudo apt-get set up poppler-utils

How to Merge PDF Files on the Command Line? – Linux Hint

As soon as this command finishes its execution, the “poppler” utility might be put in in your Linux Mint 20 system as proven within the picture beneath:

How to Merge PDF Files on the Command Line? – Linux Hint

After putting in this utility, you should use it to merge information by way of the terminal within the following method:

$ pdf unite PDF1.pdf PDF2.pdf PDF3.pdf

Right here, all of the PDF information aside from the final one are those that you simply wish to merge, whereas the final one signifies the brand new output file. After operating this command, a brand new PDF file named “PDF3.pdf” might be created that might be an built-in model of the information talked about earlier than it, and it may be verified in the identical method as defined above.

How to Merge PDF Files on the Command Line? – Linux Hint

Conclusion:

By selecting any methodology of your desire from those mentioned on this article, you may simply merge two or extra PDF information by way of the command line whereas utilizing Linux Mint 20. These three strategies are, actually, extraordinarily handy methods of merging the PDF information and that too in a short time.

pdfunite,pdfunite arch,merge pdf linux pdftk,pdfunite all files in folder,pdfunite windows,pdfsam linux,pdfshuffler,ubuntu merge pdf command line,qpdf split pdf,pdfseparate,linux pdf burst,ubuntu install pdftk,opposite of pdfunite,unix merge pdf,combine two pdfs terminal,pdfjoin ubuntu,pdftk,merge pdf online,pdfunite macos,combine pdf centos,merge two pdfs together linux,concatenate pdfs terminal,combine pdf command line,pdf command line tools,command line pdf splitter,combine two pdf files terminal,concatenate pdf files ubuntu command line