Copy link to clipboard
Copied
I have a folder of pdf files that all need to be converted to png files. Each pdf document has a height of 3 inches, but slightly different widths. I have created a batch automation to open each pdf file at 600dpi and save it to another folder as a .png file. The problem I am having is that some of the png files that are saved are correct while others have the wrong pixel dimensions. It appears that the pdf documents that have a width wider than 3" open and save at the wrong size. When I open them individually I do not have this problem.
How can I tell the photoshop batch process that I want to open every pdf file at the original document size specified in the pdf?
I was able to get this to work properly using the script below.
https://github.com/Paul-Riggott/PS-Scripts/blob/master/PDF%20ProcessorII.jsx
Copy link to clipboard
Copied
Can you post a screenshot of your action steps?
Copy link to clipboard
Copied
I actually did this in two steps. One action opened all the files. The second iterated through the open files, saved the png and closed the files. I found that when I did it with one action it kept saving over the first file. The action setps and automate settings are below.
Open:
Batch Settings
Save PNG
Batch Settings
Copy link to clipboard
Copied
If you individually open a pdf and step through the action, what happens? You can double-click each step to perform it in order.
Copy link to clipboard
Copied
When I open the file individually, I get a dialog box with the correct dimensions already set. When I automate I need to supress that box and automatically set them to the size specified in the pdf. The automation process seems to use the dimensions of the first file to determine the dimension settings of the following files.
Copy link to clipboard
Copied
I was able to get this to work properly using the script below.
https://github.com/Paul-Riggott/PS-Scripts/blob/master/PDF%20ProcessorII.jsx
Find more inspiration, events, and resources on the new Adobe Community
Explore Now