Skip to main content
Inspiring
March 16, 2020
Resuelto

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

  • March 16, 2020
  • 3 respuestas
  • 10428 visualizaciones

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? 

    Este tema ha sido cerrado para respuestas.
    Mejor respuesta de Justin_Bobbitt

    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

     

    3 respuestas

    Justin_BobbittAutorRespuesta
    Inspiring
    March 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

     

    Legend
    March 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.

    Inspiring
    March 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.

    Bob_Hallam
    Legend
    March 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.
    Inspiring
    March 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:

    Batch Settings

    Save PNG

    Batch Settings