Copy link to clipboard
Copied
When extracting pages from PDF in Adobe with javascript, how do I select multiple pages and produce one file?
example I want pages 14, 300, 453, 1000, 6000 and produce one file with these pages
Also, how do I start the index at 1, so these numbers match.
Thanks so much for the help.
John
Copy link to clipboard
Copied
Delete unwanted pages and save the file with a new name.
Copy link to clipboard
Copied
Thanks for the advice Bernd.
I am trying to use javascript to exact mutiple pages and save a file of those choosen pages.
I have a code to pull one page, but I don't know how to pull mutiple pages.
Copy link to clipboard
Copied
You can extract multiple pages when you specify the start and end parameters.
Copy link to clipboard
Copied
Hello again,
I tried using both of those options.
If I use this;
this.extractPages({nStart:3, nEnd:6, cPath: "TEstExtract.pdf"});
I get pages 3 to 6, but what if I want to take pages 1, 9, 100, 10000?
Thanks
John
Copy link to clipboard
Copied
There are two ways to do that:
- Delete all the other pages in the file and then save it under a new name.
- Create a new file and import the desired pages into it, then save it (after deleting the first blank page that is added by default).
I've developed a (paid-for) tool that does the latter. All you need to do is provide it the list of pages to extract, either one at a time, or in ranges ("1-10, 20, 100-200" for example):
http://try67.blogspot.com/2011/04/acrobat-extract-non-sequential-pages.html
Find more inspiration, events, and resources on the new Adobe Community
Explore Now