{"id":5250,"date":"2019-02-17T11:09:15","date_gmt":"2019-02-17T10:09:15","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=5250"},"modified":"2019-02-17T11:09:15","modified_gmt":"2019-02-17T10:09:15","slug":"pdftk-merge-two-pdf-files-containing-even-and-odd-pages-of-a-book-super-user","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2019\/02\/17\/pdftk-merge-two-pdf-files-containing-even-and-odd-pages-of-a-book-super-user\/","title":{"rendered":"pdftk &#8211; Merge two PDF files containing even and odd pages of a book &#8211; Super User"},"content":{"rendered":"<p><em><a href=\"https:\/\/superuser.com\/questions\/516612\/merge-two-pdf-files-containing-even-and-odd-pages-of-a-book\">pdftk &#8211; Merge two PDF files containing even and odd pages of a book &#8211; Super User<\/a><\/em><\/p>\n<blockquote>\n<div class=\"post-text\">\n<p>A simple solution would be to use only <a href=\"https:\/\/www.pdflabs.com\/tools\/pdftk-the-pdf-toolkit\/\" rel=\"noreferrer\">pdftk<\/a> in the following way:<\/p>\n<pre><code class=\"\" data-line=\"\">pdftk A=even.pdf B=odd.pdf shuffle A Bend-1 output merged.pdf\n\n<\/code><\/pre>\n<blockquote><p>PDFtk has a special feature that we added specifically to solve this problem of arranging scanned pages: shuffle. Say you have two PDFs: even.pdf and odd.pdf. Then you can collate them into a single document like this:<\/p>\n<pre><code class=\"\" data-line=\"\">pdftk A=odd.pdf B=even.pdf shuffle A B output collated_pages.pdf\n<\/code><\/pre>\n<p>If your even pages are in reverse order, you can reverse its page range:<\/p>\n<pre><code class=\"\" data-line=\"\">pdftk A=odd.pdf B=even.pdf shuffle A Bend-1 output collated_pages.pdf\n<\/code><\/pre>\n<p>The shuffle feature works by taking one page at a time from each of the input page ranges and assembling them into a new PDF. You specify these ranges after the shuffle keyword, and you can have more than two ranges.<\/p><\/blockquote>\n<pre><code class=\"\" data-line=\"\"><\/code><\/pre>\n<\/div>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">pdftk &#8211; Merge two PDF files containing even and odd pages of a book &#8211; Super User A simple solution would be to use only pdftk in the following way: pdftk A=even.pdf B=odd.pdf shuffle A Bend-1 output merged.pdf PDFtk has a special feature that we added specifically to solve this problem of arranging scanned pages:&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2019\/02\/17\/pdftk-merge-two-pdf-files-containing-even-and-odd-pages-of-a-book-super-user\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-5250","post","type-post","status-publish","format-standard","hentry","category-senza-categoria"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-1mG","jetpack-related-posts":[{"id":8005,"url":"https:\/\/monodes.com\/predaelli\/2021\/01\/04\/3-tribes-of-programming\/","url_meta":{"origin":5250,"position":0},"title":"3 tribes of programming","author":"Paolo Redaelli","date":"2021-01-04","format":"quote","excerpt":"There's an old joke that computer science is a lie, because its not really about computers, and its not really a science. Funny joke. Everyone laughs, then someone says \"Yeah but it sort of is about computers though, isn't it?\". Feet shuffle awkwardly. Someone clears their throat and before you\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":659,"url":"https:\/\/monodes.com\/predaelli\/2015\/09\/18\/moving-a-gpg-key-privately-short-circuit-synapse\/","url_meta":{"origin":5250,"position":1},"title":"Moving a GPG Key (Privately) | Short-Circuit Synapse","author":"Paolo Redaelli","date":"2015-09-18","format":false,"excerpt":"Sometimes I have to move my GnuPG key between computers for some reason, and although GnuPG does have features to export your private key, they are not as well documented, probably out of choice to discourage their use, as they can be a security issue. I have developed the following\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11170,"url":"https:\/\/monodes.com\/predaelli\/2024\/01\/10\/unknown-pearls\/","url_meta":{"origin":5250,"position":2},"title":"Unknown pearls","author":"Paolo Redaelli","date":"2024-01-10","format":false,"excerpt":"I already knew many of the software listed in 40 Must-Have Free Open Source Applications for 2024 but of course, one never stop learning, so I discovered some interesting pearls unknown to me: Jaspersoft Studio is a report designer program that allows you to create simple and sophisticated reports as\u2026","rel":"","context":"In &quot;Software Libero&quot;","block_context":{"text":"Software Libero","link":"https:\/\/monodes.com\/predaelli\/category\/software\/software-libero\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2020\/02\/system-software-install.png?fit=256%2C256&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":15110,"url":"https:\/\/monodes.com\/predaelli\/2026\/02\/22\/cowboy-bebob-heavy-metal-queen-intro\/","url_meta":{"origin":5250,"position":3},"title":"Cowboy Bebob &#8211; Heavy metal queen intro","author":"Paolo Redaelli","date":"2026-02-22","format":false,"excerpt":"I'm re-watching Cowboy Bebop with my family - you know, my daughters are really grown up today and they are really appreciating it. We reached the Heavy metal queen episode with its powerful intro song, titled Live in Baghdad. https:\/\/www.youtube.com\/watch?v=fSKwN1YIafo Here the full song (also from Youtube). As I am\u2026","rel":"","context":"In &quot;Mood&quot;","block_context":{"text":"Mood","link":"https:\/\/monodes.com\/predaelli\/category\/mood\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/fSKwN1YIafo\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":8969,"url":"https:\/\/monodes.com\/predaelli\/2021\/12\/08\/converting-speech-to-text-in-10-minutes-with-python-and-watson\/","url_meta":{"origin":5250,"position":4},"title":"Converting Speech to Text in 10 Minutes with Python and Watson","author":"Paolo Redaelli","date":"2021-12-08","format":false,"excerpt":"Ok, it's not free-as-in-freedom, but someone nevertheless could find it useful... Converting Speech to Text in 10 Minutes with Python and Watson Social network for developers to discuss topics about bugs and issues, write and share knowledge and connect with millions of developers worldwide. \u00a0 Regie Lucas 9 months ago\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1974,"url":"https:\/\/monodes.com\/predaelli\/2016\/12\/16\/getting-your-latex-book-to-print\/","url_meta":{"origin":5250,"position":5},"title":"Getting Your (LaTex) Book to Print","author":"Paolo Redaelli","date":"2016-12-16","format":false,"excerpt":"As I explained yesterday, making a custom text from the OLP source using LaTeX is relatively easy.\u00a0 But, I\u2019d also like to get an attractively printed version with covers and everything.\u00a0 So I\u2026 Sorgente: Getting Your Book to Print | Open Logic Project As I explained yesterday, making a custom\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=700%2C400 2x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/5250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=5250"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/5250\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=5250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=5250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=5250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}