Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Batch operation to convert PDF files to PNG does not maintain proper dimensions across all files

Explorer ,
Mar 16, 2020 Mar 16, 2020

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? 

10.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Mar 16, 2020 Mar 16, 2020

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

 

Translate
Adobe
Guide ,
Mar 16, 2020 Mar 16, 2020

Can you post a screenshot of your action steps?



ICC programmer and developer, Photographer, artist and color management expert, Print standards and process expert.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 16, 2020 Mar 16, 2020

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:

Action-Open.PNG

Batch Settings

Action-Open-Settings.PNG

Save PNG

Action-Save.PNG

Batch Settings

Action-Save-Settings.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 16, 2020 Mar 16, 2020

If you individually open a pdf and step through the action, what happens? You can double-click each step to perform it in order.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 16, 2020 Mar 16, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 16, 2020 Mar 16, 2020
LATEST

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines