{"id":6088,"date":"2018-11-26T21:30:17","date_gmt":"2018-11-26T20:30:17","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=6088"},"modified":"2018-11-27T14:21:40","modified_gmt":"2018-11-27T13:21:40","slug":"pdf-merge-multiple-pdf-files","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/pdf-merge-multiple-pdf-files\/","title":{"rendered":"PDF: Merge multiple PDF Files"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_6088 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_6088')){$('.twoclick_social_bookmarks_post_6088').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"PDF%3A%20Merge%20multiple%20PDF%20Files\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athe%20Standard%20PDF%20Viewer%20Adobe%20Acrobat%20Reader%20has%20no%20edit%20function%2C%20therefore%20a%20merge%20of%20multiple%20pdf%20files%20is%20also%20not%20possible.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/pdf-merge-multiple-pdf-files\\\/\",\"post_id\":6088,\"post_title_referrer_track\":\"PDF%3A+Merge+multiple+PDF+Files\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>the Standard PDF Viewer Adobe Acrobat Reader has no edit function, therefore a merge of multiple pdf files is also not possible.<br \/>\n<!--more--><br \/>\nOne Option is to buy a tool like Adobe Acrobat Standard or use the free tool ghostscript. Ghostscript has command line interface and is included in all versions of Linux and can also be <a href=\"https:\/\/www.ghostscript.com\/download\/gsdnld.html\" rel=\"noopener\" target=\"_blank\">Ghostscript for Windows<\/a>.<\/p>\n<p>On linux Install ghostscript with your favorite package package manager<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@debdev ~ # apt-get install ghostscript\r\n<\/pre>\n<p>For Windows download the installation package and start the setup program.<\/p>\n<p>For merging files on Windows set GS_FONTPATH to the Windows font directory. Otherwise you get an error that some fonts were not found and your font is substituted with another one:<br \/>\n<code><br \/>\nCan't find (or can't open) font file %rom%Resource\/Font\/ArialMT.<br \/>\nCan't find (or can't open) font file ArialMT.<br \/>\nQuerying operating system for font files...<br \/>\nDidn't find this font on the system!<br \/>\nSubstituting font Helvetica for ArialMT.<br \/>\n<\/code><br \/>\nSet GS_FONTPATH <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:\\&gt; set GS_FONTPATH=C:\\Windows\\Fonts\r\n<\/pre>\n<p>and execute ghostscript<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; cd FolderOfYourPDFFiles\r\nD:\\FolderOfYourPDFFiles&gt; D:\\Ghostscript\\x64\\gs9.07\\bin\\gswin64c.exe -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=D:\\temp\\Merged.pdf -dBATCH PDFFile1.pdf PDFFile2.pdf PDFFilen.pdf\r\n<\/pre>\n<p>On Linux the ghostscript command line utility is simply <strong>gs<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ # gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=\/tmp\/Merged.pdf -dBATCH PDFFile1.pdf PDFFile2.pdf PDFFilen.pdf\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, the Standard PDF Viewer Adobe Acrobat Reader has no edit function, therefore a merge of multiple pdf files is also not possible.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1287,1286],"tags":[1282,1284,583,177,1283,553,173,1285],"class_list":["post-6088","post","type-post","status-publish","format-standard","hentry","category-ghostscript","category-tools","tag-adobe-reader","tag-combine","tag-files","tag-ghostscript","tag-merge","tag-multiple","tag-pdf","tag-tools"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=6088"}],"version-history":[{"count":5,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6088\/revisions"}],"predecessor-version":[{"id":6093,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6088\/revisions\/6093"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=6088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=6088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=6088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}