Copy link to clipboard
Copied
Hi, is there a possibility with the adobe action assistant tool to extract each first page of a pdf file stack (about 60 pdf files in a start folder) and save them into a new folder? Thanks for help.
Copy link to clipboard
Copied
Yes, this can be done using a script, but it can't create the output folder for you, it has to already exist.
You can do it by executing this code:
this.extractPages(0, 0, "/C/First Pages/P1 from "+this.documentFileName);
This will extract the first pages to the C:\First Pages\ folder and name them "P1 from " followed by the original file name.
Copy link to clipboard
Copied
Yes, this can be done using a script, but it can't create the output folder for you, it has to already exist.
You can do it by executing this code:
this.extractPages(0, 0, "/C/First Pages/P1 from "+this.documentFileName);
This will extract the first pages to the C:\First Pages\ folder and name them "P1 from " followed by the original file name.
Copy link to clipboard
Copied
Thanks try67 for this information.
When I open the java skript editor to fill in the code, Adobe Acrobat DC crashes.
I've checked the preferences to activate all around java skript in Acrobat.
I've uninstalled the App and reinstalled it via Adobe creativ cloud.
Nothing changes.
What is gone wrong there?
Thanks for Help
Copy link to clipboard
Copied
What's the exact version number of the application? What's your OS version?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi, try67.
I did it wrong.
I used "Java script instructions for documents"
Now I tried it with "execute Java script"
and it worked.
But why Acrobat stops when I only open the editor for the first instruction.
Thank you for help.
This skript saves time.
Copy link to clipboard
Copied
Make sure to un-tick the box that says "Prompt User" under the Execute JavaScript action you added.
Copy link to clipboard
Copied
Anyone know how I can do this same script to extract the first 5 pages as separate files and all pages after that as one file?

