{"id":563,"date":"2012-02-10T01:05:14","date_gmt":"2012-02-10T00:05:14","guid":{"rendered":"http:\/\/sburke.eu\/blog\/?p=563"},"modified":"2022-07-25T23:27:40","modified_gmt":"2022-07-25T22:27:40","slug":"carving-and-merging-pdf-documents","status":"publish","type":"post","link":"http:\/\/sburke.eu\/blog\/2012\/02\/carving-and-merging-pdf-documents\/","title":{"rendered":"Carving and Merging Multiple PDF Documents &#8211; Pdftk"},"content":{"rendered":"<p><a href=\"http:\/\/sburke.eu\/blog\/wp-content\/uploads\/2012\/02\/pdftk-carve-pdfs.gif\"><img loading=\"lazy\" class=\"alignright size-full wp-image-567\" title=\"pdftk-carve-pdfs\" src=\"http:\/\/sburke.eu\/blog\/wp-content\/uploads\/2012\/02\/pdftk-carve-pdfs.gif\" alt=\"\" width=\"255\" height=\"198\" \/><\/a>I had a few\u00a0hundred PDF documents and I wanted to take the first page of each PDF and put them into 1 single PDF document.<\/p>\n<p>Enter: <a href=\"http:\/\/www.pdflabs.com\/\" target=\"_blank\" rel=\"noopener\">Pdftk &#8211; The PDF Toolkit<\/a><\/p>\n<p>Downloading the Zip file, and in the bin folder was pdftk.exe and libiconv2.dll. Running the pdftk.exe via the command line fired it up into action.<\/p>\n<pre>pdftk A=one.pdf B=two.pdf cat A1 B1\u00a0output combined.pdf<\/pre>\n<p>I done some command line trickery with dir &gt; outputlist to get a single pdftk command with all the documents.<br \/>\nOther Examples of pdftk\u00a0can be found at: <a href=\"http:\/\/www.pdflabs.com\/docs\/pdftk-cli-examples\/\">http:\/\/www.pdflabs.com\/docs\/pdftk-cli-examples\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a few\u00a0hundred PDF documents and I wanted to take the first page of each PDF and put them into 1 single PDF document. Enter: Pdftk &#8211; The PDF Toolkit Downloading the Zip file, and in the bin folder &hellip; <a href=\"http:\/\/sburke.eu\/blog\/2012\/02\/carving-and-merging-pdf-documents\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[14,51,21],"_links":{"self":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts\/563"}],"collection":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/comments?post=563"}],"version-history":[{"count":6,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":686,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions\/686"}],"wp:attachment":[{"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/media?parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/categories?post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sburke.eu\/blog\/wp-json\/wp\/v2\/tags?post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}