{"id":31690,"date":"2019-03-03T16:52:35","date_gmt":"2019-03-03T22:52:35","guid":{"rendered":"https:\/\/gregladen.com\/blog\/?p=31690"},"modified":"2019-03-03T16:52:35","modified_gmt":"2019-03-03T22:52:35","slug":"how-to-extract-pages-from-a-pdf-file","status":"publish","type":"post","link":"https:\/\/gregladen.com\/blog\/2019\/03\/03\/how-to-extract-pages-from-a-pdf-file\/","title":{"rendered":"How to extract pages from a PDF file"},"content":{"rendered":"<p>If you have a PDF file and need to extract a subset of pages, creating a new PDF file with those pages in it, you can do that.<\/p>\n<p>I like <a href=\"https:\/\/www.pdflabs.com\/tools\/pdftk-the-pdf-toolkit\/\">PDF Lab<\/a>&#8216;s PDFtk aka PDF toolkit.  This is not OpenSource and there is both a non free pro and free version of it.  I&#8217;ve tried the free version (example below) and was impressed. Next time I need to do a lot of PDF work I&#8217;ll probably fork out the 399 for the pro version. (That&#8217;s 399 pennies, quite cheap. It is developed by Sid Steward, the author of <a target=\"_blank\" href=\"https:\/\/www.amazon.com\/gp\/product\/0596006551\/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596006551&#038;linkCode=as2&#038;tag=grlasbl0a-20&#038;linkId=fb14cd018f281ac5b4c2d4f4cd08ecc5\">PDF Hacks: 100 Industrial-Strength Tips &amp; Tools<\/a><img loading=\"lazy\" decoding=\"async\" src=\"\/\/ir-na.amazon-adsystem.com\/e\/ir?t=grlasbl0a-20&#038;l=am2&#038;o=1&#038;a=0596006551\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>.<\/p>\n<p>So, for example, I can get pages 11-20 of a larger file called big.pdf extracted into a smaller file called extracted.pdf like this:<\/p>\n<p><code>pdftk A=bigpdf cat A11-20 output extracted.pdf<\/code><\/p>\n<p>That line of code makes almost no sense to me, but it works.<\/p>\n<p>I learned about this tip at a <a href=\"https:\/\/www.linuxjournal.com\/content\/tech-tip-extract-pages-pdf\">Linux Journal Tech Tip page on extracting pages from a PDF<\/a>, where you will find several other approaches.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a PDF file and need to extract a subset of pages, creating a new PDF file with those pages in it, you can do that. I like PDF Lab&#8216;s PDFtk aka PDF toolkit. This is not OpenSource and there is both a non free pro and free version of it. I&#8217;ve tried &hellip; <a href=\"https:\/\/gregladen.com\/blog\/2019\/03\/03\/how-to-extract-pages-from-a-pdf-file\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to extract pages from a PDF file<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":31691,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5028],"tags":[5901,67,5900],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/gregladen.com\/blog\/wp-content\/uploads\/2019\/03\/AdobeAcrobatSymbol.jpg?fit=355%2C355&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p5fhV1-8f8","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31690"}],"collection":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/comments?post=31690"}],"version-history":[{"count":1,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31690\/revisions"}],"predecessor-version":[{"id":31692,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/31690\/revisions\/31692"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media\/31691"}],"wp:attachment":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media?parent=31690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/categories?post=31690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/tags?post=31690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}