Convert - Text to PDF

Overview

The 'Convert - Text to PDF' flow action converts either text files (.txt) or text data to PDF format. 

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 'Convert - Text to PDF' flow action parameters are detailed below:

  • PDF Filename: The filename to assign to the resulting PDF document (including file extension).
  • File Content: (Optional) A Base64 encoded representation of the text (txt) file to be processed.
  • Text Data: (Optional) Enter the text to convert to a PDF document. 

Either 'Text Data' or 'File Content' parameters are required to create a PDF document. 

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 'Convert - Text to PDF' flow action parameters are detailed below:

The 'Encoding Type' parameter can be set to the following values:

  • Default (Current Code Page)
  • Latin1
  • BigEndianUnicode
  • UTF16
  • UTF8
  • UTF

Please refer to the Flow Action Return Options: File Content vs. Operation ID article for further details on the 'Return File' parameter.

Return Parameters

The 'Convert - Text to PDF' flow action returns the following data. 

Action Specific Return Values

  • Filename - The filename of the PDF document.
  • File Content - The converted 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