Copy link to clipboard
Copied
I have a file of groups of 6 pages (149 groups of 6) where I need to delete the 5th and 6th page, then the 11th and 12th, and so forth, but retain the balance of the document.
How do I do this with an Action Tool Javascript?
You can do it with this code:
for (var p=this.numPages-1; p>0; p-=6) {
this.deletePages(p-1, p);
}
Copy link to clipboard
Copied
You can do it with this code:
for (var p=this.numPages-1; p>0; p-=6) {
this.deletePages(p-1, p);
}
Copy link to clipboard
Copied
Nice but wheredo I enter this code?
Copy link to clipboard
Copied
You can run it from the JS Console: https://acrobatusers.com/tutorials/javascript_console
Copy link to clipboard
Copied
Or from a Custom Command, if you have Acrobat Pro DC.