Merge two PDF files containing even and odd pages of a book











up vote
33
down vote

favorite
14












I have two searchable PDF documents, say even.pdf and odd.pdf which contain even and odd pages of a book, respectively.



I can decompile each PDF to separate files 001.pdf 002.pdf 003.pdf, et cetera. The question is how to merge them?



They are both even and odd sequences numbered 1, 2, 3. If the numbering in the decompile process with pdftk were different, e.g. 1, 3, 5 for even and 2, 4, 6 for odd instead of 1, 2, 3, 4, I could simply merge them.



Can I do this any other way?










share|improve this question




























    up vote
    33
    down vote

    favorite
    14












    I have two searchable PDF documents, say even.pdf and odd.pdf which contain even and odd pages of a book, respectively.



    I can decompile each PDF to separate files 001.pdf 002.pdf 003.pdf, et cetera. The question is how to merge them?



    They are both even and odd sequences numbered 1, 2, 3. If the numbering in the decompile process with pdftk were different, e.g. 1, 3, 5 for even and 2, 4, 6 for odd instead of 1, 2, 3, 4, I could simply merge them.



    Can I do this any other way?










    share|improve this question


























      up vote
      33
      down vote

      favorite
      14









      up vote
      33
      down vote

      favorite
      14






      14





      I have two searchable PDF documents, say even.pdf and odd.pdf which contain even and odd pages of a book, respectively.



      I can decompile each PDF to separate files 001.pdf 002.pdf 003.pdf, et cetera. The question is how to merge them?



      They are both even and odd sequences numbered 1, 2, 3. If the numbering in the decompile process with pdftk were different, e.g. 1, 3, 5 for even and 2, 4, 6 for odd instead of 1, 2, 3, 4, I could simply merge them.



      Can I do this any other way?










      share|improve this question















      I have two searchable PDF documents, say even.pdf and odd.pdf which contain even and odd pages of a book, respectively.



      I can decompile each PDF to separate files 001.pdf 002.pdf 003.pdf, et cetera. The question is how to merge them?



      They are both even and odd sequences numbered 1, 2, 3. If the numbering in the decompile process with pdftk were different, e.g. 1, 3, 5 for even and 2, 4, 6 for odd instead of 1, 2, 3, 4, I could simply merge them.



      Can I do this any other way?







      pdf pdftk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 20 '16 at 21:16









      lucian.jp

      1128




      1128










      asked Dec 8 '12 at 10:57









      Yurij73

      44011018




      44011018






















          10 Answers
          10






          active

          oldest

          votes

















          up vote
          30
          down vote













          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





          share|improve this answer



















          • 3




            Awesome! It even reverses the order of the odd pages, such that I can simply run the document through my scanner twice (once on each side), instead of manually reshuffling the pages before scanning again.
            – FrederikNS
            Oct 23 '14 at 12:25










          • Pdftk is the best free solution. Easy to use and you can create a quick bash script to run all the different commands for you. There's a great example page too.
            – Blairg23
            Mar 3 '16 at 6:31










          • How can I use this with the * parameter. It does not work because it is going through the files like 1,10,100,101,...,2,20,21...
            – Phil Roggenbuck
            May 15 at 12:36










          • PERFECT! Just merged a humongous 900 page document
            – Ivan
            Aug 27 at 21:50


















          up vote
          19
          down vote













          From the PDFtk homepage:




          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:



          pdftk A=odd.pdf B=even.pdf shuffle A B output collated_pages.pdf


          If your even pages are in reverse order, you can reverse its page range:



          pdftk A=odd.pdf B=even.pdf shuffle A Bend-1 output collated_pages.pdf


          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.




          An example of the use of more ranges is:



          pdftk A=odd.pdf B=even.pdf shuffle A1 B1 A5-6 B2-3 output out.pdf


          in which case the output contains the first page of A (A1), the first page of B (B1), then the fifth page of A, the second of B, the sixth page of A and finally the third page of B.






          share|improve this answer



















          • 3




            FYI: I think Bend-1 means B document, from end to page 1. Since the end comes after 1, they are in reverse order. If they were 10 pages, alternatively, you could say B10-1. I thought it meant 'bend the pages'.
            – Chloe
            Mar 10 '15 at 20:38












          • +1 to @Chloe for the explanation! I was wondering what the heck bend meant. This is a great overall example and alternate use cases, so +1 to Melgaard too! Thanks to both of you!
            – Blairg23
            Mar 2 '16 at 1:45


















          up vote
          9
          down vote













          Check out Sejda - A New Advanced Online PDF Manipulation Tool



          http://sejda.com/



          It has the ability to merge docs in different ways, and may be able to accomplish your requirements above - the Alternate and Mix task appears to do what you're asking for.



          Alternate and Mix PDF files using Sejda.com






          share|improve this answer























          • Yeah if you want to pay 6 bucks a month.
            – Blairg23
            Mar 3 '16 at 6:30






          • 3




            It actually has a pretty generous free tier for occasional users
            – Andrea Vacondio
            Aug 31 '16 at 8:14


















          up vote
          4
          down vote













          Of the top of my head, I would combine pdftk with mmv:




          • First burst both files into separate directories, getting even/001.pdf and odd/001.pdf etc.

          • Then use mmv '*.pdf' '#1-a.pdf' on the odd folder, mmv '*.pdf' '#1-b.pdf' on the even folder.

          • Move everything into one folder. The shell expansion * should now sort odd pages before even pages (001-a, 001-b, 002-a, 002-b etc.).

          • Use pdftk as in pdftk *.pdf cat output combined.pdf


          Maybe you have to do the last bit in loops for, say, the first thirty pages, then another thirty pages etc., depending on how robust your shell expansion is with many files.






          share|improve this answer






























            up vote
            3
            down vote













            I had spent an hour looking for a solution to process three huge files until I found this forum and tried the http://sejda.com/. It has done an amazing job - exaclty what I wanted: merge two documents (one containing odd pages, and second containing even page in a reverse order). A great online service I would recommend to everyone who needs to process big pdf files. Thanks to Sejda team!






            share|improve this answer



















            • 1




              Another shameless plug to sejda.
              – Blairg23
              Mar 3 '16 at 6:30


















            up vote
            3
            down vote













            I use the free and open source PDF Split and Merge module called Alternate Mix.



            Besides being able to merge files it is capable of other interesting operations.






            share|improve this answer






























              up vote
              1
              down vote













              I was facing the same problem. One file containing the odd, one file containing the even pages of a scanned book. I simply used the built in Windows 7/8/8.1 batch rename capability.



              1) Split the pages of each pdf back into seperate files for each page such that one folder contains all odd pages as seperated files and a different folder contains all even pages.



              2) Bulk/Batch/Mass rename the files of both folders in the same way. Simply select all files in each folder and rename the first one as a and hit enter. In doing so, the files in each of the two folders will be numbered as a(1),a(2),a(3)...



              3) In the folder with the odd pages, copy all files and paste them directly into the same folder. In doing so, it creates copies of the files with the odd pages that will look like a(1) - Copy



              4) Move these copied files to the folder containing the even files. This sorts them in front of the even page files (as long as the files are sorted by their names).



              5) Merge the the files back into one file by simply following the new naming scheme.



              In order to merge and split the pdf files I used pdfIll's Pdf Tools which is available for free.






              share|improve this answer





















              • If you are using PDFill to split pages in the PDFs to their own files, it asks for a name, so you can skip the mass rename (since they already have the correct names). Be sure to check that 10 is after 9 (and not between 1 and 2). Drag and drop works, the Add PDF Files under a Folder button does not.
                – Trisped
                Apr 18 '16 at 20:20




















              up vote
              0
              down vote













              well what you are asking is slightly complicated, but for starters you could try something like Combine PDFs Free or any other page. If you have trouble let me know and i can try help :P



              regards
              cam






              share|improve this answer




























                up vote
                0
                down vote













                I think he is opting for a little bit more flexibility in functionality.
                That makes your combinepdf option totally useless. Better give Online PDF
                a try. That will put you in command at least...






                share|improve this answer





















                • First of all, please don’t use an answer to comment on another answer. To critique or request clarification from an author, leave a comment below their post – you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. ... (Cont’d)
                  – G-Man
                  Oct 27 '14 at 19:28










                • (Cont’d) ... (2) How does “Online PDF” answer this question? I took a quick look at it – I uploaded two PDF files – and I didn’t see an option for interleaving their pages. (3) And even if “Online PDF” can do what the question asks for, is there anything that makes it preferable to pdftk (which has been mentioned in two answers)?
                  – G-Man
                  Oct 27 '14 at 19:29


















                up vote
                0
                down vote













                PDFSam Basic is free and the merging process is much faster than what I am accustomed to on Adobe Acrobat. (It took about 3 seconds to merge two 200-page, 50MB files, interleaved. Whereas it would've taken at least 10 seconds on Adobe Acrobat, without the interleaving feature.)



                The only possible drawback is that you have to install it on your system.






                share|improve this answer





















                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "3"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                   

                  draft saved


                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f516612%2fmerge-two-pdf-files-containing-even-and-odd-pages-of-a-book%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  10 Answers
                  10






                  active

                  oldest

                  votes








                  10 Answers
                  10






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes








                  up vote
                  30
                  down vote













                  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





                  share|improve this answer



















                  • 3




                    Awesome! It even reverses the order of the odd pages, such that I can simply run the document through my scanner twice (once on each side), instead of manually reshuffling the pages before scanning again.
                    – FrederikNS
                    Oct 23 '14 at 12:25










                  • Pdftk is the best free solution. Easy to use and you can create a quick bash script to run all the different commands for you. There's a great example page too.
                    – Blairg23
                    Mar 3 '16 at 6:31










                  • How can I use this with the * parameter. It does not work because it is going through the files like 1,10,100,101,...,2,20,21...
                    – Phil Roggenbuck
                    May 15 at 12:36










                  • PERFECT! Just merged a humongous 900 page document
                    – Ivan
                    Aug 27 at 21:50















                  up vote
                  30
                  down vote













                  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





                  share|improve this answer



















                  • 3




                    Awesome! It even reverses the order of the odd pages, such that I can simply run the document through my scanner twice (once on each side), instead of manually reshuffling the pages before scanning again.
                    – FrederikNS
                    Oct 23 '14 at 12:25










                  • Pdftk is the best free solution. Easy to use and you can create a quick bash script to run all the different commands for you. There's a great example page too.
                    – Blairg23
                    Mar 3 '16 at 6:31










                  • How can I use this with the * parameter. It does not work because it is going through the files like 1,10,100,101,...,2,20,21...
                    – Phil Roggenbuck
                    May 15 at 12:36










                  • PERFECT! Just merged a humongous 900 page document
                    – Ivan
                    Aug 27 at 21:50













                  up vote
                  30
                  down vote










                  up vote
                  30
                  down vote









                  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





                  share|improve this answer














                  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






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 20 '16 at 20:43









                  lucian.jp

                  1128




                  1128










                  answered May 22 '13 at 17:22









                  Björn Grüning

                  40142




                  40142








                  • 3




                    Awesome! It even reverses the order of the odd pages, such that I can simply run the document through my scanner twice (once on each side), instead of manually reshuffling the pages before scanning again.
                    – FrederikNS
                    Oct 23 '14 at 12:25










                  • Pdftk is the best free solution. Easy to use and you can create a quick bash script to run all the different commands for you. There's a great example page too.
                    – Blairg23
                    Mar 3 '16 at 6:31










                  • How can I use this with the * parameter. It does not work because it is going through the files like 1,10,100,101,...,2,20,21...
                    – Phil Roggenbuck
                    May 15 at 12:36










                  • PERFECT! Just merged a humongous 900 page document
                    – Ivan
                    Aug 27 at 21:50














                  • 3




                    Awesome! It even reverses the order of the odd pages, such that I can simply run the document through my scanner twice (once on each side), instead of manually reshuffling the pages before scanning again.
                    – FrederikNS
                    Oct 23 '14 at 12:25










                  • Pdftk is the best free solution. Easy to use and you can create a quick bash script to run all the different commands for you. There's a great example page too.
                    – Blairg23
                    Mar 3 '16 at 6:31










                  • How can I use this with the * parameter. It does not work because it is going through the files like 1,10,100,101,...,2,20,21...
                    – Phil Roggenbuck
                    May 15 at 12:36










                  • PERFECT! Just merged a humongous 900 page document
                    – Ivan
                    Aug 27 at 21:50








                  3




                  3




                  Awesome! It even reverses the order of the odd pages, such that I can simply run the document through my scanner twice (once on each side), instead of manually reshuffling the pages before scanning again.
                  – FrederikNS
                  Oct 23 '14 at 12:25




                  Awesome! It even reverses the order of the odd pages, such that I can simply run the document through my scanner twice (once on each side), instead of manually reshuffling the pages before scanning again.
                  – FrederikNS
                  Oct 23 '14 at 12:25












                  Pdftk is the best free solution. Easy to use and you can create a quick bash script to run all the different commands for you. There's a great example page too.
                  – Blairg23
                  Mar 3 '16 at 6:31




                  Pdftk is the best free solution. Easy to use and you can create a quick bash script to run all the different commands for you. There's a great example page too.
                  – Blairg23
                  Mar 3 '16 at 6:31












                  How can I use this with the * parameter. It does not work because it is going through the files like 1,10,100,101,...,2,20,21...
                  – Phil Roggenbuck
                  May 15 at 12:36




                  How can I use this with the * parameter. It does not work because it is going through the files like 1,10,100,101,...,2,20,21...
                  – Phil Roggenbuck
                  May 15 at 12:36












                  PERFECT! Just merged a humongous 900 page document
                  – Ivan
                  Aug 27 at 21:50




                  PERFECT! Just merged a humongous 900 page document
                  – Ivan
                  Aug 27 at 21:50












                  up vote
                  19
                  down vote













                  From the PDFtk homepage:




                  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:



                  pdftk A=odd.pdf B=even.pdf shuffle A B output collated_pages.pdf


                  If your even pages are in reverse order, you can reverse its page range:



                  pdftk A=odd.pdf B=even.pdf shuffle A Bend-1 output collated_pages.pdf


                  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.




                  An example of the use of more ranges is:



                  pdftk A=odd.pdf B=even.pdf shuffle A1 B1 A5-6 B2-3 output out.pdf


                  in which case the output contains the first page of A (A1), the first page of B (B1), then the fifth page of A, the second of B, the sixth page of A and finally the third page of B.






                  share|improve this answer



















                  • 3




                    FYI: I think Bend-1 means B document, from end to page 1. Since the end comes after 1, they are in reverse order. If they were 10 pages, alternatively, you could say B10-1. I thought it meant 'bend the pages'.
                    – Chloe
                    Mar 10 '15 at 20:38












                  • +1 to @Chloe for the explanation! I was wondering what the heck bend meant. This is a great overall example and alternate use cases, so +1 to Melgaard too! Thanks to both of you!
                    – Blairg23
                    Mar 2 '16 at 1:45















                  up vote
                  19
                  down vote













                  From the PDFtk homepage:




                  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:



                  pdftk A=odd.pdf B=even.pdf shuffle A B output collated_pages.pdf


                  If your even pages are in reverse order, you can reverse its page range:



                  pdftk A=odd.pdf B=even.pdf shuffle A Bend-1 output collated_pages.pdf


                  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.




                  An example of the use of more ranges is:



                  pdftk A=odd.pdf B=even.pdf shuffle A1 B1 A5-6 B2-3 output out.pdf


                  in which case the output contains the first page of A (A1), the first page of B (B1), then the fifth page of A, the second of B, the sixth page of A and finally the third page of B.






                  share|improve this answer



















                  • 3




                    FYI: I think Bend-1 means B document, from end to page 1. Since the end comes after 1, they are in reverse order. If they were 10 pages, alternatively, you could say B10-1. I thought it meant 'bend the pages'.
                    – Chloe
                    Mar 10 '15 at 20:38












                  • +1 to @Chloe for the explanation! I was wondering what the heck bend meant. This is a great overall example and alternate use cases, so +1 to Melgaard too! Thanks to both of you!
                    – Blairg23
                    Mar 2 '16 at 1:45













                  up vote
                  19
                  down vote










                  up vote
                  19
                  down vote









                  From the PDFtk homepage:




                  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:



                  pdftk A=odd.pdf B=even.pdf shuffle A B output collated_pages.pdf


                  If your even pages are in reverse order, you can reverse its page range:



                  pdftk A=odd.pdf B=even.pdf shuffle A Bend-1 output collated_pages.pdf


                  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.




                  An example of the use of more ranges is:



                  pdftk A=odd.pdf B=even.pdf shuffle A1 B1 A5-6 B2-3 output out.pdf


                  in which case the output contains the first page of A (A1), the first page of B (B1), then the fifth page of A, the second of B, the sixth page of A and finally the third page of B.






                  share|improve this answer














                  From the PDFtk homepage:




                  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:



                  pdftk A=odd.pdf B=even.pdf shuffle A B output collated_pages.pdf


                  If your even pages are in reverse order, you can reverse its page range:



                  pdftk A=odd.pdf B=even.pdf shuffle A Bend-1 output collated_pages.pdf


                  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.




                  An example of the use of more ranges is:



                  pdftk A=odd.pdf B=even.pdf shuffle A1 B1 A5-6 B2-3 output out.pdf


                  in which case the output contains the first page of A (A1), the first page of B (B1), then the fifth page of A, the second of B, the sixth page of A and finally the third page of B.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 13 '14 at 9:34

























                  answered Mar 13 '14 at 8:05









                  Melgaard

                  19113




                  19113








                  • 3




                    FYI: I think Bend-1 means B document, from end to page 1. Since the end comes after 1, they are in reverse order. If they were 10 pages, alternatively, you could say B10-1. I thought it meant 'bend the pages'.
                    – Chloe
                    Mar 10 '15 at 20:38












                  • +1 to @Chloe for the explanation! I was wondering what the heck bend meant. This is a great overall example and alternate use cases, so +1 to Melgaard too! Thanks to both of you!
                    – Blairg23
                    Mar 2 '16 at 1:45














                  • 3




                    FYI: I think Bend-1 means B document, from end to page 1. Since the end comes after 1, they are in reverse order. If they were 10 pages, alternatively, you could say B10-1. I thought it meant 'bend the pages'.
                    – Chloe
                    Mar 10 '15 at 20:38












                  • +1 to @Chloe for the explanation! I was wondering what the heck bend meant. This is a great overall example and alternate use cases, so +1 to Melgaard too! Thanks to both of you!
                    – Blairg23
                    Mar 2 '16 at 1:45








                  3




                  3




                  FYI: I think Bend-1 means B document, from end to page 1. Since the end comes after 1, they are in reverse order. If they were 10 pages, alternatively, you could say B10-1. I thought it meant 'bend the pages'.
                  – Chloe
                  Mar 10 '15 at 20:38






                  FYI: I think Bend-1 means B document, from end to page 1. Since the end comes after 1, they are in reverse order. If they were 10 pages, alternatively, you could say B10-1. I thought it meant 'bend the pages'.
                  – Chloe
                  Mar 10 '15 at 20:38














                  +1 to @Chloe for the explanation! I was wondering what the heck bend meant. This is a great overall example and alternate use cases, so +1 to Melgaard too! Thanks to both of you!
                  – Blairg23
                  Mar 2 '16 at 1:45




                  +1 to @Chloe for the explanation! I was wondering what the heck bend meant. This is a great overall example and alternate use cases, so +1 to Melgaard too! Thanks to both of you!
                  – Blairg23
                  Mar 2 '16 at 1:45










                  up vote
                  9
                  down vote













                  Check out Sejda - A New Advanced Online PDF Manipulation Tool



                  http://sejda.com/



                  It has the ability to merge docs in different ways, and may be able to accomplish your requirements above - the Alternate and Mix task appears to do what you're asking for.



                  Alternate and Mix PDF files using Sejda.com






                  share|improve this answer























                  • Yeah if you want to pay 6 bucks a month.
                    – Blairg23
                    Mar 3 '16 at 6:30






                  • 3




                    It actually has a pretty generous free tier for occasional users
                    – Andrea Vacondio
                    Aug 31 '16 at 8:14















                  up vote
                  9
                  down vote













                  Check out Sejda - A New Advanced Online PDF Manipulation Tool



                  http://sejda.com/



                  It has the ability to merge docs in different ways, and may be able to accomplish your requirements above - the Alternate and Mix task appears to do what you're asking for.



                  Alternate and Mix PDF files using Sejda.com






                  share|improve this answer























                  • Yeah if you want to pay 6 bucks a month.
                    – Blairg23
                    Mar 3 '16 at 6:30






                  • 3




                    It actually has a pretty generous free tier for occasional users
                    – Andrea Vacondio
                    Aug 31 '16 at 8:14













                  up vote
                  9
                  down vote










                  up vote
                  9
                  down vote









                  Check out Sejda - A New Advanced Online PDF Manipulation Tool



                  http://sejda.com/



                  It has the ability to merge docs in different ways, and may be able to accomplish your requirements above - the Alternate and Mix task appears to do what you're asking for.



                  Alternate and Mix PDF files using Sejda.com






                  share|improve this answer














                  Check out Sejda - A New Advanced Online PDF Manipulation Tool



                  http://sejda.com/



                  It has the ability to merge docs in different ways, and may be able to accomplish your requirements above - the Alternate and Mix task appears to do what you're asking for.



                  Alternate and Mix PDF files using Sejda.com







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 26 '16 at 19:17









                  Ben N

                  28.8k1394140




                  28.8k1394140










                  answered Dec 8 '12 at 11:20









                  Simon

                  3,42963249




                  3,42963249












                  • Yeah if you want to pay 6 bucks a month.
                    – Blairg23
                    Mar 3 '16 at 6:30






                  • 3




                    It actually has a pretty generous free tier for occasional users
                    – Andrea Vacondio
                    Aug 31 '16 at 8:14


















                  • Yeah if you want to pay 6 bucks a month.
                    – Blairg23
                    Mar 3 '16 at 6:30






                  • 3




                    It actually has a pretty generous free tier for occasional users
                    – Andrea Vacondio
                    Aug 31 '16 at 8:14
















                  Yeah if you want to pay 6 bucks a month.
                  – Blairg23
                  Mar 3 '16 at 6:30




                  Yeah if you want to pay 6 bucks a month.
                  – Blairg23
                  Mar 3 '16 at 6:30




                  3




                  3




                  It actually has a pretty generous free tier for occasional users
                  – Andrea Vacondio
                  Aug 31 '16 at 8:14




                  It actually has a pretty generous free tier for occasional users
                  – Andrea Vacondio
                  Aug 31 '16 at 8:14










                  up vote
                  4
                  down vote













                  Of the top of my head, I would combine pdftk with mmv:




                  • First burst both files into separate directories, getting even/001.pdf and odd/001.pdf etc.

                  • Then use mmv '*.pdf' '#1-a.pdf' on the odd folder, mmv '*.pdf' '#1-b.pdf' on the even folder.

                  • Move everything into one folder. The shell expansion * should now sort odd pages before even pages (001-a, 001-b, 002-a, 002-b etc.).

                  • Use pdftk as in pdftk *.pdf cat output combined.pdf


                  Maybe you have to do the last bit in loops for, say, the first thirty pages, then another thirty pages etc., depending on how robust your shell expansion is with many files.






                  share|improve this answer



























                    up vote
                    4
                    down vote













                    Of the top of my head, I would combine pdftk with mmv:




                    • First burst both files into separate directories, getting even/001.pdf and odd/001.pdf etc.

                    • Then use mmv '*.pdf' '#1-a.pdf' on the odd folder, mmv '*.pdf' '#1-b.pdf' on the even folder.

                    • Move everything into one folder. The shell expansion * should now sort odd pages before even pages (001-a, 001-b, 002-a, 002-b etc.).

                    • Use pdftk as in pdftk *.pdf cat output combined.pdf


                    Maybe you have to do the last bit in loops for, say, the first thirty pages, then another thirty pages etc., depending on how robust your shell expansion is with many files.






                    share|improve this answer

























                      up vote
                      4
                      down vote










                      up vote
                      4
                      down vote









                      Of the top of my head, I would combine pdftk with mmv:




                      • First burst both files into separate directories, getting even/001.pdf and odd/001.pdf etc.

                      • Then use mmv '*.pdf' '#1-a.pdf' on the odd folder, mmv '*.pdf' '#1-b.pdf' on the even folder.

                      • Move everything into one folder. The shell expansion * should now sort odd pages before even pages (001-a, 001-b, 002-a, 002-b etc.).

                      • Use pdftk as in pdftk *.pdf cat output combined.pdf


                      Maybe you have to do the last bit in loops for, say, the first thirty pages, then another thirty pages etc., depending on how robust your shell expansion is with many files.






                      share|improve this answer














                      Of the top of my head, I would combine pdftk with mmv:




                      • First burst both files into separate directories, getting even/001.pdf and odd/001.pdf etc.

                      • Then use mmv '*.pdf' '#1-a.pdf' on the odd folder, mmv '*.pdf' '#1-b.pdf' on the even folder.

                      • Move everything into one folder. The shell expansion * should now sort odd pages before even pages (001-a, 001-b, 002-a, 002-b etc.).

                      • Use pdftk as in pdftk *.pdf cat output combined.pdf


                      Maybe you have to do the last bit in loops for, say, the first thirty pages, then another thirty pages etc., depending on how robust your shell expansion is with many files.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Sep 25 '13 at 20:11









                      Felix Dombek

                      91661444




                      91661444










                      answered Dec 8 '12 at 11:45









                      Claudius

                      5,28211113




                      5,28211113






















                          up vote
                          3
                          down vote













                          I had spent an hour looking for a solution to process three huge files until I found this forum and tried the http://sejda.com/. It has done an amazing job - exaclty what I wanted: merge two documents (one containing odd pages, and second containing even page in a reverse order). A great online service I would recommend to everyone who needs to process big pdf files. Thanks to Sejda team!






                          share|improve this answer



















                          • 1




                            Another shameless plug to sejda.
                            – Blairg23
                            Mar 3 '16 at 6:30















                          up vote
                          3
                          down vote













                          I had spent an hour looking for a solution to process three huge files until I found this forum and tried the http://sejda.com/. It has done an amazing job - exaclty what I wanted: merge two documents (one containing odd pages, and second containing even page in a reverse order). A great online service I would recommend to everyone who needs to process big pdf files. Thanks to Sejda team!






                          share|improve this answer



















                          • 1




                            Another shameless plug to sejda.
                            – Blairg23
                            Mar 3 '16 at 6:30













                          up vote
                          3
                          down vote










                          up vote
                          3
                          down vote









                          I had spent an hour looking for a solution to process three huge files until I found this forum and tried the http://sejda.com/. It has done an amazing job - exaclty what I wanted: merge two documents (one containing odd pages, and second containing even page in a reverse order). A great online service I would recommend to everyone who needs to process big pdf files. Thanks to Sejda team!






                          share|improve this answer














                          I had spent an hour looking for a solution to process three huge files until I found this forum and tried the http://sejda.com/. It has done an amazing job - exaclty what I wanted: merge two documents (one containing odd pages, and second containing even page in a reverse order). A great online service I would recommend to everyone who needs to process big pdf files. Thanks to Sejda team!







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Mar 23 '13 at 4:48









                          Carl B

                          5,699123759




                          5,699123759










                          answered Mar 23 '13 at 2:41









                          Art

                          311




                          311








                          • 1




                            Another shameless plug to sejda.
                            – Blairg23
                            Mar 3 '16 at 6:30














                          • 1




                            Another shameless plug to sejda.
                            – Blairg23
                            Mar 3 '16 at 6:30








                          1




                          1




                          Another shameless plug to sejda.
                          – Blairg23
                          Mar 3 '16 at 6:30




                          Another shameless plug to sejda.
                          – Blairg23
                          Mar 3 '16 at 6:30










                          up vote
                          3
                          down vote













                          I use the free and open source PDF Split and Merge module called Alternate Mix.



                          Besides being able to merge files it is capable of other interesting operations.






                          share|improve this answer



























                            up vote
                            3
                            down vote













                            I use the free and open source PDF Split and Merge module called Alternate Mix.



                            Besides being able to merge files it is capable of other interesting operations.






                            share|improve this answer

























                              up vote
                              3
                              down vote










                              up vote
                              3
                              down vote









                              I use the free and open source PDF Split and Merge module called Alternate Mix.



                              Besides being able to merge files it is capable of other interesting operations.






                              share|improve this answer














                              I use the free and open source PDF Split and Merge module called Alternate Mix.



                              Besides being able to merge files it is capable of other interesting operations.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Aug 31 '16 at 9:27









                              Andrea Vacondio

                              19314




                              19314










                              answered Dec 8 '12 at 22:14









                              To Do

                              1,08221124




                              1,08221124






















                                  up vote
                                  1
                                  down vote













                                  I was facing the same problem. One file containing the odd, one file containing the even pages of a scanned book. I simply used the built in Windows 7/8/8.1 batch rename capability.



                                  1) Split the pages of each pdf back into seperate files for each page such that one folder contains all odd pages as seperated files and a different folder contains all even pages.



                                  2) Bulk/Batch/Mass rename the files of both folders in the same way. Simply select all files in each folder and rename the first one as a and hit enter. In doing so, the files in each of the two folders will be numbered as a(1),a(2),a(3)...



                                  3) In the folder with the odd pages, copy all files and paste them directly into the same folder. In doing so, it creates copies of the files with the odd pages that will look like a(1) - Copy



                                  4) Move these copied files to the folder containing the even files. This sorts them in front of the even page files (as long as the files are sorted by their names).



                                  5) Merge the the files back into one file by simply following the new naming scheme.



                                  In order to merge and split the pdf files I used pdfIll's Pdf Tools which is available for free.






                                  share|improve this answer





















                                  • If you are using PDFill to split pages in the PDFs to their own files, it asks for a name, so you can skip the mass rename (since they already have the correct names). Be sure to check that 10 is after 9 (and not between 1 and 2). Drag and drop works, the Add PDF Files under a Folder button does not.
                                    – Trisped
                                    Apr 18 '16 at 20:20

















                                  up vote
                                  1
                                  down vote













                                  I was facing the same problem. One file containing the odd, one file containing the even pages of a scanned book. I simply used the built in Windows 7/8/8.1 batch rename capability.



                                  1) Split the pages of each pdf back into seperate files for each page such that one folder contains all odd pages as seperated files and a different folder contains all even pages.



                                  2) Bulk/Batch/Mass rename the files of both folders in the same way. Simply select all files in each folder and rename the first one as a and hit enter. In doing so, the files in each of the two folders will be numbered as a(1),a(2),a(3)...



                                  3) In the folder with the odd pages, copy all files and paste them directly into the same folder. In doing so, it creates copies of the files with the odd pages that will look like a(1) - Copy



                                  4) Move these copied files to the folder containing the even files. This sorts them in front of the even page files (as long as the files are sorted by their names).



                                  5) Merge the the files back into one file by simply following the new naming scheme.



                                  In order to merge and split the pdf files I used pdfIll's Pdf Tools which is available for free.






                                  share|improve this answer





















                                  • If you are using PDFill to split pages in the PDFs to their own files, it asks for a name, so you can skip the mass rename (since they already have the correct names). Be sure to check that 10 is after 9 (and not between 1 and 2). Drag and drop works, the Add PDF Files under a Folder button does not.
                                    – Trisped
                                    Apr 18 '16 at 20:20















                                  up vote
                                  1
                                  down vote










                                  up vote
                                  1
                                  down vote









                                  I was facing the same problem. One file containing the odd, one file containing the even pages of a scanned book. I simply used the built in Windows 7/8/8.1 batch rename capability.



                                  1) Split the pages of each pdf back into seperate files for each page such that one folder contains all odd pages as seperated files and a different folder contains all even pages.



                                  2) Bulk/Batch/Mass rename the files of both folders in the same way. Simply select all files in each folder and rename the first one as a and hit enter. In doing so, the files in each of the two folders will be numbered as a(1),a(2),a(3)...



                                  3) In the folder with the odd pages, copy all files and paste them directly into the same folder. In doing so, it creates copies of the files with the odd pages that will look like a(1) - Copy



                                  4) Move these copied files to the folder containing the even files. This sorts them in front of the even page files (as long as the files are sorted by their names).



                                  5) Merge the the files back into one file by simply following the new naming scheme.



                                  In order to merge and split the pdf files I used pdfIll's Pdf Tools which is available for free.






                                  share|improve this answer












                                  I was facing the same problem. One file containing the odd, one file containing the even pages of a scanned book. I simply used the built in Windows 7/8/8.1 batch rename capability.



                                  1) Split the pages of each pdf back into seperate files for each page such that one folder contains all odd pages as seperated files and a different folder contains all even pages.



                                  2) Bulk/Batch/Mass rename the files of both folders in the same way. Simply select all files in each folder and rename the first one as a and hit enter. In doing so, the files in each of the two folders will be numbered as a(1),a(2),a(3)...



                                  3) In the folder with the odd pages, copy all files and paste them directly into the same folder. In doing so, it creates copies of the files with the odd pages that will look like a(1) - Copy



                                  4) Move these copied files to the folder containing the even files. This sorts them in front of the even page files (as long as the files are sorted by their names).



                                  5) Merge the the files back into one file by simply following the new naming scheme.



                                  In order to merge and split the pdf files I used pdfIll's Pdf Tools which is available for free.







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Jan 10 '15 at 18:14









                                  Georg

                                  111




                                  111












                                  • If you are using PDFill to split pages in the PDFs to their own files, it asks for a name, so you can skip the mass rename (since they already have the correct names). Be sure to check that 10 is after 9 (and not between 1 and 2). Drag and drop works, the Add PDF Files under a Folder button does not.
                                    – Trisped
                                    Apr 18 '16 at 20:20




















                                  • If you are using PDFill to split pages in the PDFs to their own files, it asks for a name, so you can skip the mass rename (since they already have the correct names). Be sure to check that 10 is after 9 (and not between 1 and 2). Drag and drop works, the Add PDF Files under a Folder button does not.
                                    – Trisped
                                    Apr 18 '16 at 20:20


















                                  If you are using PDFill to split pages in the PDFs to their own files, it asks for a name, so you can skip the mass rename (since they already have the correct names). Be sure to check that 10 is after 9 (and not between 1 and 2). Drag and drop works, the Add PDF Files under a Folder button does not.
                                  – Trisped
                                  Apr 18 '16 at 20:20






                                  If you are using PDFill to split pages in the PDFs to their own files, it asks for a name, so you can skip the mass rename (since they already have the correct names). Be sure to check that 10 is after 9 (and not between 1 and 2). Drag and drop works, the Add PDF Files under a Folder button does not.
                                  – Trisped
                                  Apr 18 '16 at 20:20












                                  up vote
                                  0
                                  down vote













                                  well what you are asking is slightly complicated, but for starters you could try something like Combine PDFs Free or any other page. If you have trouble let me know and i can try help :P



                                  regards
                                  cam






                                  share|improve this answer

























                                    up vote
                                    0
                                    down vote













                                    well what you are asking is slightly complicated, but for starters you could try something like Combine PDFs Free or any other page. If you have trouble let me know and i can try help :P



                                    regards
                                    cam






                                    share|improve this answer























                                      up vote
                                      0
                                      down vote










                                      up vote
                                      0
                                      down vote









                                      well what you are asking is slightly complicated, but for starters you could try something like Combine PDFs Free or any other page. If you have trouble let me know and i can try help :P



                                      regards
                                      cam






                                      share|improve this answer












                                      well what you are asking is slightly complicated, but for starters you could try something like Combine PDFs Free or any other page. If you have trouble let me know and i can try help :P



                                      regards
                                      cam







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Apr 20 '13 at 8:47









                                      Cameron

                                      1




                                      1






















                                          up vote
                                          0
                                          down vote













                                          I think he is opting for a little bit more flexibility in functionality.
                                          That makes your combinepdf option totally useless. Better give Online PDF
                                          a try. That will put you in command at least...






                                          share|improve this answer





















                                          • First of all, please don’t use an answer to comment on another answer. To critique or request clarification from an author, leave a comment below their post – you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. ... (Cont’d)
                                            – G-Man
                                            Oct 27 '14 at 19:28










                                          • (Cont’d) ... (2) How does “Online PDF” answer this question? I took a quick look at it – I uploaded two PDF files – and I didn’t see an option for interleaving their pages. (3) And even if “Online PDF” can do what the question asks for, is there anything that makes it preferable to pdftk (which has been mentioned in two answers)?
                                            – G-Man
                                            Oct 27 '14 at 19:29















                                          up vote
                                          0
                                          down vote













                                          I think he is opting for a little bit more flexibility in functionality.
                                          That makes your combinepdf option totally useless. Better give Online PDF
                                          a try. That will put you in command at least...






                                          share|improve this answer





















                                          • First of all, please don’t use an answer to comment on another answer. To critique or request clarification from an author, leave a comment below their post – you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. ... (Cont’d)
                                            – G-Man
                                            Oct 27 '14 at 19:28










                                          • (Cont’d) ... (2) How does “Online PDF” answer this question? I took a quick look at it – I uploaded two PDF files – and I didn’t see an option for interleaving their pages. (3) And even if “Online PDF” can do what the question asks for, is there anything that makes it preferable to pdftk (which has been mentioned in two answers)?
                                            – G-Man
                                            Oct 27 '14 at 19:29













                                          up vote
                                          0
                                          down vote










                                          up vote
                                          0
                                          down vote









                                          I think he is opting for a little bit more flexibility in functionality.
                                          That makes your combinepdf option totally useless. Better give Online PDF
                                          a try. That will put you in command at least...






                                          share|improve this answer












                                          I think he is opting for a little bit more flexibility in functionality.
                                          That makes your combinepdf option totally useless. Better give Online PDF
                                          a try. That will put you in command at least...







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Oct 27 '14 at 18:53









                                          Job

                                          1




                                          1












                                          • First of all, please don’t use an answer to comment on another answer. To critique or request clarification from an author, leave a comment below their post – you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. ... (Cont’d)
                                            – G-Man
                                            Oct 27 '14 at 19:28










                                          • (Cont’d) ... (2) How does “Online PDF” answer this question? I took a quick look at it – I uploaded two PDF files – and I didn’t see an option for interleaving their pages. (3) And even if “Online PDF” can do what the question asks for, is there anything that makes it preferable to pdftk (which has been mentioned in two answers)?
                                            – G-Man
                                            Oct 27 '14 at 19:29


















                                          • First of all, please don’t use an answer to comment on another answer. To critique or request clarification from an author, leave a comment below their post – you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. ... (Cont’d)
                                            – G-Man
                                            Oct 27 '14 at 19:28










                                          • (Cont’d) ... (2) How does “Online PDF” answer this question? I took a quick look at it – I uploaded two PDF files – and I didn’t see an option for interleaving their pages. (3) And even if “Online PDF” can do what the question asks for, is there anything that makes it preferable to pdftk (which has been mentioned in two answers)?
                                            – G-Man
                                            Oct 27 '14 at 19:29
















                                          First of all, please don’t use an answer to comment on another answer. To critique or request clarification from an author, leave a comment below their post – you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. ... (Cont’d)
                                          – G-Man
                                          Oct 27 '14 at 19:28




                                          First of all, please don’t use an answer to comment on another answer. To critique or request clarification from an author, leave a comment below their post – you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. ... (Cont’d)
                                          – G-Man
                                          Oct 27 '14 at 19:28












                                          (Cont’d) ... (2) How does “Online PDF” answer this question? I took a quick look at it – I uploaded two PDF files – and I didn’t see an option for interleaving their pages. (3) And even if “Online PDF” can do what the question asks for, is there anything that makes it preferable to pdftk (which has been mentioned in two answers)?
                                          – G-Man
                                          Oct 27 '14 at 19:29




                                          (Cont’d) ... (2) How does “Online PDF” answer this question? I took a quick look at it – I uploaded two PDF files – and I didn’t see an option for interleaving their pages. (3) And even if “Online PDF” can do what the question asks for, is there anything that makes it preferable to pdftk (which has been mentioned in two answers)?
                                          – G-Man
                                          Oct 27 '14 at 19:29










                                          up vote
                                          0
                                          down vote













                                          PDFSam Basic is free and the merging process is much faster than what I am accustomed to on Adobe Acrobat. (It took about 3 seconds to merge two 200-page, 50MB files, interleaved. Whereas it would've taken at least 10 seconds on Adobe Acrobat, without the interleaving feature.)



                                          The only possible drawback is that you have to install it on your system.






                                          share|improve this answer

























                                            up vote
                                            0
                                            down vote













                                            PDFSam Basic is free and the merging process is much faster than what I am accustomed to on Adobe Acrobat. (It took about 3 seconds to merge two 200-page, 50MB files, interleaved. Whereas it would've taken at least 10 seconds on Adobe Acrobat, without the interleaving feature.)



                                            The only possible drawback is that you have to install it on your system.






                                            share|improve this answer























                                              up vote
                                              0
                                              down vote










                                              up vote
                                              0
                                              down vote









                                              PDFSam Basic is free and the merging process is much faster than what I am accustomed to on Adobe Acrobat. (It took about 3 seconds to merge two 200-page, 50MB files, interleaved. Whereas it would've taken at least 10 seconds on Adobe Acrobat, without the interleaving feature.)



                                              The only possible drawback is that you have to install it on your system.






                                              share|improve this answer












                                              PDFSam Basic is free and the merging process is much faster than what I am accustomed to on Adobe Acrobat. (It took about 3 seconds to merge two 200-page, 50MB files, interleaved. Whereas it would've taken at least 10 seconds on Adobe Acrobat, without the interleaving feature.)



                                              The only possible drawback is that you have to install it on your system.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Nov 19 at 2:53









                                              Kenny LJ

                                              1412823




                                              1412823






























                                                   

                                                  draft saved


                                                  draft discarded



















































                                                   


                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f516612%2fmerge-two-pdf-files-containing-even-and-odd-pages-of-a-book%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Probability when a professor distributes a quiz and homework assignment to a class of n students.

                                                  Aardman Animations

                                                  Are they similar matrix