PDF - Extract Images

** AVAILABLE OCTOBER / NOVEMBER 2024 **

Overview

The 'PDF - Extract Images' flow action extracts images from the specified pages of the PDF document provided.

Credit Count

This action consumes 1 credit per operation.

Note, different Encodian actions can consume different number credits. Please always check the action specific documentation and read What is an Encodian Action for a full description of how credits are consumed.

Default Parameters

The default 'PDF - Extract Images' flow action parameters are detailed below:

  • File Content: The file content of the source PDF file

Advanced Parameters

The advanced 'PDF - Extract Images' flow action parameters are detailed below:

  • Mode: Set the image extraction mode (Document or Resources)
  • Start Page: Set the page number to begin extracting images from. By default the first page will be selected
  • End Page: Set the page number to stop extracting images on. By default the last page will be selected
  • Page Numbers: A comma separated list of page numbers of the pages to extract: 1,3,4

Return Parameters

The 'PDF - Extract Images' Power Automate action returns the following data. 

Action Specific Return Values

  • Images- The collection of images extracted from the Word document supplied
    Each document within the documents collection contains the following values:
  • Filename - The filename of the image
  • FileContent - The file content of the image

Working with the images returned (example)

The following is an example of the JSON payload that is returned in the response. 

"images": [
{
"fileName": "00001_00001_image.jpg",
"fileContent": "/9j/4AAQ...."
},
{
"fileName": "00001_00002_image.jpg",
"fileContent": "/9j/4AAQ...."
},
{
"fileName": "00002_00003_image.jpg",
"fileContent": "/9j/4AAQ...."
},
{
"fileName": "00003_00004_image.jpg",
"fileContent": "/9j/4AAQ...."
}
],
"HttpStatusCode": 200,
"HttpStatusMessage": "",
"OperationId": "**********-****-****-****-************",
"Errors": [],
"Operation Status": "Complete" 

Standard Return Values

  • OperationId - The unique ID assigned to this operation.
  • HttpStatusCode - The HTTP Status code for the response.
  • HttpStatusMessage - The HTTP Status message for the response.
  • Errors - An array of error messages should an error occur.
  • Operation Status - Indicates whether the operation has been completed, has been queued or has failed.
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk