{"id":1611,"date":"2016-07-10T11:07:59","date_gmt":"2016-07-10T10:07:59","guid":{"rendered":"http:\/\/slave27.local\/kb\/?p=1611"},"modified":"2016-07-10T11:07:59","modified_gmt":"2016-07-10T10:07:59","slug":"merging-pdf-files","status":"publish","type":"post","link":"https:\/\/andy.teknostatik.co.uk\/kb\/2016\/07\/10\/merging-pdf-files\/","title":{"rendered":"Merging PDF files"},"content":{"rendered":"<p>The best graphical PDF merging tool for Linux is probably <code>pdfmod<\/code>. It&#8217;s in the Ubuntu repositories, and can do anything Preview can do as far as merging\/exporting PDF files from multiple sources.<\/p>\n<p>For command line merging, <code>pdftk<\/code> does the job well. The syntax would be something like:<\/p>\n<pre><code>pdftk *.pdf cat output combined.pdf\n<\/code><\/pre>\n<p>Which would merge all PDF files in the current directory, or:<\/p>\n<pre><code>pdftk file1.pdf file2.pdf cat output combined.pdf\n<\/code><\/pre>\n<p>Which would merge two specific files.<\/p>\n<p>If you need to convert Word documents to PDF prior to doing this, there is a command line tool called <code>lowriter<\/code> which is part of the <code>libreoffice<\/code> suite. The syntax would be:<\/p>\n<pre><code>lowriter --convert-to pdf *.docx\n<\/code><\/pre>\n<p>It works with <code>.doc<\/code> and <code>.docx<\/code> files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The best graphical PDF merging tool for Linux is probably pdfmod. It&#8217;s in the Ubuntu repositories, and can do anything Preview can do as far as merging\/exporting PDF files from multiple sources. For command line merging, pdftk does the job well. The syntax would be something like: pdftk *.pdf cat output combined.pdf Which would merge &#8230; <a title=\"Merging PDF files\" class=\"read-more\" href=\"https:\/\/andy.teknostatik.co.uk\/kb\/2016\/07\/10\/merging-pdf-files\/\" aria-label=\"Read more about Merging PDF files\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","_share_on_mastodon":"0"},"categories":[3,5,8],"tags":[],"class_list":["post-1611","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-ubuntu"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/comments?post=1611"}],"version-history":[{"count":0,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1611\/revisions"}],"wp:attachment":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/media?parent=1611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/categories?post=1611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/tags?post=1611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}