![]() -sOUTPUTFILE=outputfile.pdf: Here, you can name the output of the merged PDF file.I have used pdfwrite function to manipulate PDF files. -sDEVICE=pdfwrite: Using -sDEVICE you can specify the function or the output device.I mean if you have 200 pages of PDF, you are not going to allow this utility to allow for every page manually! -dNOPAUSE: Will disable the prompt for asking you to continue on every page.Look too complex? let me break down the used options first: Once done, you can use the given command syntax to merge the PDF file: gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=outputfile.pdf -dBATCH file1.pdf file2.pdf And one of them is merging PDF files.īut it does not come pre-installed with Ubuntu and you'd need to follow the given command for installation: sudo apt install ghostscript Ghostscript is a feature-rich PDF manipulation tool that provides various ways to edit your PDF files. Once done, you just have to use append file names and the name of the output file to the pdfunite utility as shown: pdfunite file1 file2 file3 output.pdfįor reference, I will be merging two PDF files named Ubuntu.pdf and Debian.pdf into one file named Linux.pdf: pdfunite Ubuntu.pdf Debian.pdf Linux.pdf Use ghostscript to merge PDF Files in Ubuntu From the set of a bunch of utilities, you will be using pdfunite to merge pdf files.īut first, let's install Poppler in Ubuntu using the given command: sudo apt install poppler-utils Popper is not a utility but a PDF rendering library itself. Similarly, if you want to merge every PDF file present in the directory, you can use *.pdf instead of naming each file manually and it will take care of the rest: pdftk *.pdf cat output mergedfile.pdf Use poppler to merge PDF files in Ubuntu Once done, you just have to follow the simple command structure to merge PDF files: pdftk file1 file2 file3 cat output mergedfile.pdfįor example, here, I have merged two files named Hello.pdf and World.pdf into one that is named as HelloWorld.pdf: pdftk Hello.pdf World.pdf cat output HelloWorld.pdf ![]() The pdftk (pdf toolkit) is one of the best CLI utilities which is specifically designed to manipulate PDF files.īut it does not come pre-installed in Ubuntu and can be installed using the given command: sudo apt install pdftk-java Ubuntu 18.04 Review of New Features Use pdftk to merge PDF files in Ubuntu
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |