Resize PDF

Overview

The 'Resize PDF' 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 'Resize PDF' 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 'Resize PDF' 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, only applied when the 'Custom' page size has been set
  • Height: Set a custom height, 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%)

Return Parameters

The 'Resize PDF' 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.
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk