Copy link to clipboard
Copied
I have a 693 page pdf file and need to extract every 3rd page. Does anyone know how to accomplish this?
Copy link to clipboard
Copied
Extract as separate files?
Copy link to clipboard
Copied
Pages would be 3, 6, 9, 12 etc. Then extracted into one file.
Copy link to clipboard
Copied
Delete the unwanted pages and save the file with a new name.
Copy link to clipboard
Copied
Do you mean pages 1, 4, 7, etc.?
What should be the names of the files when these pages are extracted?
Copy link to clipboard
Copied
Pages would be 3, 6, 9, 12 etc. Then extracted into one file.
Copy link to clipboard
Copied
As mentioned, it would be easier to do it by deleting all the other pages, and then saving the file under a new name. You can do that using this code:
for (var i=this.numPages-1; i>=0; i--) {
if (((i+1)%3)!=0) this.deletePages(i,i);
}
this.saveAs(this.path.replace(this.documentFileName, "ExtractedPages.pdf"));
You can run it from the JS Console, for example.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more