Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
Works fine for me... Are you running this script as a part of an Action?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I would set the Save To setting in the Action to "Do not save", since you're already doing it with your code...
Find more inspiration, events, and resources on the new Adobe Community
Explore Now