Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
1

batch processing acrobat extract first page with action assistant

Explorer ,
Jun 18, 2020 Jun 18, 2020

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.

TOPICS
Edit and convert PDFs
3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jun 18, 2020 Jun 18, 2020

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.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2020 Jun 18, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2020 Jun 18, 2020

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2020 Jun 18, 2020

What's the exact version number of the application? What's your OS version?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2020 Jun 18, 2020

AAPC_Version.pngexpand imageWin 10 Version.pngexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2020 Jun 18, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 18, 2020 Jun 18, 2020

Make sure to un-tick the box that says "Prompt User" under the Execute JavaScript action you added.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 07, 2022 Oct 07, 2022
LATEST

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines