![]() Install Ghostscript on Debian / Ubuntu: sudo apt-get install ghostscript PDFunite ![]() Install Ghostscript on CentOS: sudo yum install ghostscript gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=mergedfile.pdf -dBATCH file1.pdf file2.pdf You can see the full list with gs -h command. The -sDEVICE attribute designates the output device or function. We’ll use -dNOPAUSE to disable continuation prompts at the end of each page. It is a versatile CLI app for manipulating PDF, XPS, and PostScript files. Ghostscript is installed on InMotion cPanel servers, CentOS cloud servers, and many desktop Linux distros. Learn more about how to convert and resize files with ImageMagick. Install ImageMagick on Debian / Ubuntu: sudo apt install imagemagick Install ImageMagick on CentOS: sudo yum install ImageMagick For example, to merge pages 1-2 of a PDF with a second file: convert file1.pdf file2.pdf mergedfile.pdf To merge specific pages from PDFs, specify the pages starting from 0. We recommend trying GhostScript (below) before asking for normal shell access. If that returns info about using the tool, your cPanel server administrator may have set your user to a jailed shell for better security, removing your access to the ImageMagick delegates.xml file. You may receive the following error on a cPanel server- convert: unable to access configure file `delegates.xml' warning/configure.c/GetConfigureOptions/677. convert file1.pdf file2.pdf mergedfile.pdf Type the program command, original PDFs in the order to be merged, then the filename for the final, merged PDF file. Primarily for image optimization, ImageMagick includes a conversion tool that can merge PDFs: convert. ImageMagick is installed on all InMotion cPanel servers. If anything shows up, check the manual to learn what it does: man pdfapplication Type pdf and press Tab twice to see what programs are listed. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |