Copy link to clipboard
Copied
Good evening, I am trying t create an action that will delete all the pages after the 2nd page of the document, then save the file to a different folder.
I have tried using the "Delete pages" action, and that didn't work. but saving the file to another folder works just fine.
Add a command to run this JavaScript code, and then save the file:
this.deletePages(2, this.numPages-1);
Copy link to clipboard
Copied
Add a command to run this JavaScript code, and then save the file:
this.deletePages(2, this.numPages-1);
Copy link to clipboard
Copied
You'll need to use JavaScript for this. Just one line.
this.deletePages(2,this.numPages-1);