Skip to main content
Inspiring
Mar 15, 2017 12:53 PM UTC
Answered

Bulk pdf's export to png by sequence

Can anybody tell me what's wrong with following sequence?

Result when starting is a window that appears to overwrite the current pdf while I want a new created png file of that current pdf file.

I have hundreds of pdf's and a sequence would be helpful.

var re = /.*\/|\.pdf$/ig;

    var filename = this.path.replace(re,"");

    this.saveAs(filename + ".png","com.adobe.acrobat.png");

Kind regards

This topic is closed to new replies. Start a new post to keep the conversation going.
jessevicCorrect answer
Inspiring
Mar 16, 2017 6:58 AM UTC

So, the script did not do anything in my case. I did not change anything on the script, but then I went to dig into some other settings.

I have chosen following output settings.

Result is ok!

Do not ask me why the script doesn't do the same... That's still an open question for me.

4 replies

jessevicAuthor
Inspiring
Mar 15, 2017 1:59 PM UTC

I created a new sequence (see capture1)

The code can you find in my first call.

When I run the sequence, following message appears:

My conclusion was: something is wrong with script because the pop-up says that the pdf will be overwritten.

The problem still occurs as you can see above. No png is created at all. Acrobat X professional is used, friday update to DC.

Translate
try67
Community Expert
Community Expert
Mar 15, 2017 2:30 PM UTC

I would set the Save To setting in the Action to "Do not save", since you're already doing it with your code...

Translate
try67
Community Expert
Community Expert
Mar 15, 2017 1:25 PM UTC

Works fine for me... Are you running this script as a part of an Action?

Translate
jessevicAuthorCorrect answer
Inspiring
Mar 16, 2017 6:58 AM UTC

So, the script did not do anything in my case. I did not change anything on the script, but then I went to dig into some other settings.

I have chosen following output settings.

Result is ok!

Do not ask me why the script doesn't do the same... That's still an open question for me.

Translate