Flatten PDF


The 'Flatten PDF' action removes all fields and other objects from a PDF document replacing them with their values to create a 'Flat' PDF document.


The 'Flatten PDF' action flattens editable form fields into a static value, it will not flatten mutiple document layers contained wthin a PDF document. To flatten mutiple PDF document layers use the 'Convert PDF to PDF/A' action.

Default Options

The default 'Flatten PDF' flow action parameters are detailed below:

  • File Content: A Base64 encoded representation of the PDF file to be processed.

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.

Return Parameters

The 'Flatten PDF' flow action returns the following data. 

Action Specific Return Values

  • File Content - The compressed 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


Please sign in to leave a comment.
Powered by Zendesk