HELP Javascript - Adobe Professional 8 - coding to insert Pages

Hello

I merge two pdf documents. I use Adobe Acrobat Professional 8. So I in Doc # 1, 10 pages and Doc # 2, I have 20 pages. I have to add 20 pages of doc # 2 after each SECOND page in the doc # 1, so the total number of pages in the end will be 110 pages of the final merged PDF. I can do it manually by inserting the document after each page, but it's a pain when I have to do for 200 pages. I found a JavaScript, online research, that allows me to enter the pages automatically. However, this JavaScript is add one page for each odd page, which does not work for me. I played a bit with the coding, but without success since I have no javascript coding experience. Can you please help me solve this problem?

That's what I want to do:

[Page 1] [page 2] [*] [page 3] [page 4] [*] [page 5] [page6] [*] [page 7] [p. 8] [*] [p age9] [Page 10] [*]

-> insert comes to the [*].

With the help, I got this code:

  for (i=1; i<numPages; i+2) {  this.insertPages(i,"Even.pdf")  }

However, there is a problem with this code, the pdf attachment inserts all 20 pages after 2 pages of the Test file, and then continues to repeat and reinsert the 20 pages, insert the 20 pages again... until I have stop it manually by pressing ESC.

So, it looks like this:

PG.1, Pg2. * Pg.3, Pg.4, p.5, P.6

Insertion point *.

Please help me with this.

Thank you

Try something like this:

for (i = this.numPages - 1; I > 0; i = i - 2) {this.insertPages(i,"Even.pdf")}

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • Tecra S11-128 on the external screen flashes

    Gentlemen.I have two problems. 1st. If I use the S11-128 with the provided power supply and an external LCD display, a distracting flickering effect is visible. It disappears if I run the laptop off the battery or with an old Tecra M2 supply (2004, e

  • WindowsUpdate_80200010 ".

    I got error "WindowsUpdate_80200010" when I installed my updates, what is and how to fix it? Thank you

  • Missing telemetry.dll

    On opening a document to Adobe pdf, I get the error message "AcroRd.exe - System Error... Telemetry.dll is missing... ».  If I click 'OK' twice or three times, the error message disappears.  I don't know why it's the sudden appearance.  I was warned

  • PCI and unknown devices drivers HP Pavilion dv7-6090es

    Hello After a recovery without recovery disks and the recovery partition, I could install most drivers, but I can't find, or I would say that there are some that I don't know yet. These are the descriptions that appear in the device as well as the ha

  • Windows 2003 Server license

    We have Windows 2003 SBS STD DCAL with Cal user = 60 Qty. I would check if it covers Windows 2003 server user cal OR I have to buy windows user cal server separately. Appreciate your help