Skip to main content
Participant
February 20, 2008
Question

Combining an even pages file and an odd pages file into one PDF achieving propper order

  • February 20, 2008
  • 12 replies
  • 154328 views

Hello all!

I have several documents that were scanned (in another application) using an autofeed scanner yielding one file for all frontpages (odds) and one file for all backpages (evens). I have these two files in PDF with comments on them. I would like to be able to combine the two files and achieve the right page ordering without doing it manually. Is there any way or script that may do this? I.e. insert page 1 from evens.pdf after page 1 from odds.pdf, page 2 from 2 (or 4 in real document) from evens.pdf after page 2 (3) in odds.pdf and so on?

Any advice on how to achieve this while retaining comments on both documents will be greatly appreciated.

Sincerly;

Santiago

12 replies

Bernd Alheit
Community Expert
Community Expert
February 20, 2008
Read this:
http://www.planetpdf.com/developer/article.asp?ContentID=collating_pdfs_using_javascrip&rhs_fa
Participating Frequently
June 2, 2009

Hi Bernd, thanks for posting this.  Can you explain where to place the script?  Sorry--my first time around with this.  The site says to use the Javascript Debugger...  not just create this as a script?

Thanks

JP

Bernd Alheit
Community Expert
Community Expert
June 2, 2009

You can execute the code in the Javascript Debugger.

Patrick_Leckey
Participating Frequently
February 20, 2008
This can be easily accomplished through Visual Basic using the InsertPages method.

You can find information about that in the Interapplication Communication API Reference document included with the Acrobat SDK under the section "AcroExch.PDDoc".

You can find all the relevant documentation here:
http://www.adobe.com/devnet/acrobat/?navID=documentation