Skip to main content
Participant
Sep 5, 2016 11:00 AM UTC
Question

Skip batch step via Javascript

Hi There

I'm working with Acrobat Pro DC.

I've got the following problem:

There is a process at our company witch creates multiple PDF-Files (Sometimes over 300).

In most cases this is the end of the story.

But: Sometimes i have to convert all of them to PDF 1.4  (Acrobat5.x).

I wanted to generate an action for the conversion:

  1. Open all files in the folder
  2. If it is a PDF
    1. Save as PDF 1.4
  3. Leave every other file alone.

In Acrobat DC i found no option to only load pdf files in the actions wizard.

My Attempt was to insert a javascript between opening and saving:

     /* Geben Sie hier den Titel des Skripts ein */

     var myFilename = this.documentFileName;

     var myRegExp = /\.pdf/;

          if(myRegExp.test(myFilename)) {

                 // Do nothing

          } else {

                 // Skip saving and proceed with next file in the folder

          }

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

try67
Community Expert
Community Expert
Sep 7, 2016 9:22 AM UTC

Move all non-PDF files from the folder before processing it with the Action, and then move them back in afterwards.

Translate
Bernd Alheit
Community Expert
Community Expert
Sep 5, 2016 12:53 PM UTC

Not possible.

Translate
Participant
Sep 5, 2016 12:57 PM UTC

OK, i hoped it wasn't so.

Ist there a way to limit an action to only the PDF-files in a folder?

I know that it was possible in former versions of Acrobat pro...

Translate
Bernd Alheit
Community Expert
Community Expert
Sep 5, 2016 3:35 PM UTC

This feature is not more available.

Translate