Docutray icon

Docutray

Process documents and search knowledge bases with Docutray services

Actions3

Document → Convert

AI-generated

Summary

Convert an image to a document using the Docutray service.

Inputs

  • binaryProperty — Binary data containing the image. Used when Input Method is set to Binary Data; the property name is defined by Binary Property (default 'data').
  • imageBase64 — Base64‑encoded image string. Used when Input Method is Base64.
  • imageUrl — URL of the image to process. Used when Input Method is URL.
  • documentTypeCode (required) — Code or ID of the target document type (selected from the Docutray document‑type list or entered manually).
  • imageContentType — MIME type of the image (required when Input Method is Base64 or URL). Options: BMP, GIF, JPEG, PDF, PNG, WebP (default JPEG).
  • documentMetadata — Additional metadata for the document, supplied as a JSON object.

Output shape

json

Each output item contains the parsed JSON response from the Docutray /api/convert endpoint (e.g., details of the created document) in the json field, paired with the original item index.

Examples

Example 1: Convert a binary image from a previous node to a PDF document.

Set Input Method to Binary Data (default), leave Binary Property as 'data', select a PDF document type via Document Type Code, optionally add metadata, and run the node.

Discussion