ComPDF icon

ComPDF

ComPDF async processing API

Document Conversion → Image to Others

AI-generated

Summary

Convert image files provided in binary form into other formats by sending them to a specified ComPDF API endpoint, using processing parameters and language settings to control the conversion.

Inputs

  • executeTypeUrl (required) — The API endpoint path to use for processing the image conversion.
  • binaryPropertyName — The name of the binary property in the input items that contains the image file to convert, defaulting to 'data'.
  • parameter (required) — Processing parameter string for the API request to customize conversion behavior.
  • language — Language code for OCR and text recognition, defaulting to '2'.

Output shape

a list of JSON objects representing the asynchronous conversion task response(s) from the ComPDF API.

The operation uploads the binary image file in each input item to the ComPDF async processing API and returns the API's JSON response(s). The output item(s) correspond to input items (paired by index). Errors can be handled per-item if 'Continue On Fail' is enabled.

Examples

Example 1: Convert an input binary image to another format using ComPDF async API

Set 'executeTypeUrl' to the desired API endpoint path (e.g. 'image/toPdf'), specify 'parameter' with required conversion parameters, select or set 'binaryPropertyName' to the property holding the input image, and optionally set 'language'. Provide binary data in the input items.

Links

Discussion