Skip to main content

Save PDF as an image

This time, I will explain how to save the saved PDF as an image file.

"Extract images from PDF" Action details

This time, the action to use is the action of "extracting images from PDF".

The action has the following parameters.

Parameter namevalue
PDF filePDF file path to be extracted as an image
Extracting pageSelect whether to print all pages or to print in page units
Image nameFile name of extracted image
Save imagesPass to save extracted images


implemented with copy and paste

We have prepared a sample flow to save files extracted from the PDF files stored in the public document to the same folder.

Copy the following code and paste it on the edit screen of Power Automate Desktop to add the target action.

Pdf.ExtractImagesFromPDF.ExtractImages PDFFile: $'''C:\\Users\\Public\\Documents\\target.pdf''' ImagesName: $'''converted''' ImagesFolder: $'''C:\\Users\\Public\\Documents'''

Operate and implement Power Automate Desktop

  1. Enter "Image from PDF" from "Search Action".

  2. Set the parameter as follows

    Parameter namevalue
    PDF fileC:\Users\Public\Documents\target.pdf
    Extract pageall
    Image nameconverted
    Image storage destinationC:\Users\Public\Documents
  3. By execution, the image file extracted from the specified PDF file is saved.

The exception that can occur

An error that can occur is when the PDF is applied to the PDF.If the password is not set, or if the password is different, even if it is a PDF with a password, an error will occur.

In addition, if each file path is wrong, or if the image data cannot be obtained well from the PDF, an error may occur.

If the image is not required, we recommend that you implement the block process.