Skip to main content
Inspiring
March 15, 2017
Answered

Bulk pdf's export to png by sequence

  • March 15, 2017
  • 2 replies
  • 709 views

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 has been closed for replies.
Correct answer jessevic

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.

2 replies

jessevicAuthor
Inspiring
March 15, 2017

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.

try67
Community Expert
Community Expert
March 15, 2017

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

try67
Community Expert
Community Expert
March 15, 2017

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

jessevicAuthorCorrect answer
Inspiring
March 16, 2017

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.