Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Inserting pages from one PDF into another PDF

Guest
Oct 11, 2020 Oct 11, 2020

Hi,

How can I insert pages from one PDF file into another PDF file in the following way using Acrobat Javascript?

Page1 of source PDF file will be insterted after page 1 of destination PDF file, page 2 of source file after page 2 of destination file etc keep inserting until last page n of source file is insterted after page n of dest file? (both source and destination pdf files have same number of pages)

 

Thank you!

 

TOPICS
Acrobat SDK and JavaScript
395
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2020 Oct 11, 2020

So you mean interleave the two files? Yes, it's possible, but it's tricky. For starters, after you insert the first page after page 1, page 2 of the target file is no longer page 2, but page 3... So you'll have to either keep track of that when deciding where to insert each page, or do it in reverse (starting from the last page and moving backwards to the first).

 

I've actually created a (paid-for) tool that allows you to do it very easily and quickly. You can find it here: http://try67.blogspot.com/2008/12/acrobat-combine-even-odd-pages.html

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2020 Oct 11, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 11, 2020 Oct 11, 2020
LATEST

Let me know if you find any best solution.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines