Power Automate Connector: Encodian – PDF
Overview
The 'PDF - Generate Bookmarks' generates and inserts bookmarks based on the JSON data provided, which represents the hierarchical items to add.
Credit Count
This action consumes 1 credit per operation.
Note, different Encodian actions can consume different numbers of 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 Options
The default 'PDF - Generate Bookmarks' flow action parameters are detailed below:
- File Content: A Base64 encoded representation of the PDF file to be processed.
- Bookmarks: JSON data containing the hierarchical entries for the 'Bookmarks', see below for further details.
Bookmarks: JSON Schema
Bookmarks are defined in a JSON dataset provided to the 'Bookmarks' property; The JSON provided should conform to the following schema:
- Title: The text value of the 'Table of Contents' entry
- Destination: The page number to go to when clicking on the 'Table of Contents' entry
- Level: The hierarchical level of the 'Table of Contents' entry
- Children: An array of sub entries
[
{
"Title": "Level 1 - Node 1",
"Destination": "1",
"Level": 1,
"Children": []
},
{
"Title": "Level 1 - Node 2",
"Destination": "2",
"Level": 1,
"Children": [
{
"Title": "Level 1 > 2 - Node 1",
"Destination": "2",
"Level": 2,
"Children": []
},
{
"Title": "Level 1 > 2 - Node 2",
"Destination": "3",
"Level": 2,
"Children": []
}]
}
]Return Parameters
The 'PDF - Generate Bookmarks' flow action returns the following data.
Action Specific Return Values
- File Content - The processed PDF file (Base64)
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.
0 Comments