Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert a page from another PDF

Status
Not open for further replies.

Swi

Programmer
Feb 4, 2002
1,965
US
I need to insert the page of another PDF file after each page of an existing PDF file. Is it possible to do programatically without going to Insert pages... and then click after for each page there is.. there are 3 thousand pages to my PDF. I do have the full version of Acrobat 8. Thanks.

Swi
 
To get you started sssume you have 2 PDF's.
p1.pdf has 1 page
p2.pdf has 3 pages

You want to insert the 1 page p1.pdf after each of the 3 pages in p2.pdf, so open p2.pdf, fire up javascript and then ...


for (pg = 0; pg<=4; pg=pg+2)
{
this.insertPages({nPage:pg,
cPath:"p1.pdf"
});
}

should do the trick.



In order to understand recursion, you must first understand recursion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top