Overview
The 'PDF - Resize' action resizes the pages contained within the PDF document provided to the specified configuration.
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 Options
The default 'PDF - Resize' flow action parameters are detailed below:
- File Content: A Base64 encoded representation of the PDF file to be processed
- Page Size: Set the new page size to be applied to the PDF file provided
Please refer to the Obtaining the 'File Contents' Parameter article for guidance on how to obtain the 'File Content' parameter ready to provide to an Encodian flow action.
Advanced Parameters
The advanced 'PDF - Resize' flow action parameters are detailed below:
- Start Page: Set the page number to begin resizing from
- End Page: Set the page number to end resizing on
- Width: Set a custom width (in points*), only applied when the 'Custom' page size has been set
- Height: Set a custom height(in point*), only applied when the 'Custom' page size has been set
- Padding Bottom: Set bottom padding of the PDF document by percentage (default is 0%)
- Padding Top: Set top padding of the PDF document by percentage (default is 0%)
- Padding Left: Set left padding of the PDF document by percentage (default is 0%)
- Padding Right: Set right padding of the PDF document by percentage (default is 0%)
*As per the desktop publishing point (DTP) standard, 72 points = 1 inch
Return Parameters
The 'PDF - Resize' flow action returns the following data.
Action Specific Return Values
- File Content - The resized PDF document (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