Autype icon

Autype

Interact with the Autype Developer API for document generation, PDF tools, and more

Document Tool → Convert to Image

AI-generated

Summary

Convert PDF pages to images (PNG or JPEG) via the Autype Document Tools API.

Inputs

  • fileId (required) — ID of the file uploaded via the File resource. Use File > Upload to get a file ID.
  • waitForCompletion — Whether to wait for the tool job to complete before returning. Defaults to true.
  • downloadOutput — Whether to automatically download the output file as binary data after completion. Only effective when waitForCompletion is true.
  • toImageOptions — Options for image conversion.

Output shape

Binary download with JSON metadata or JSON job response.

If waitForCompletion is true and downloadOutput is true and the tool job completes successfully, the node returns { json: { fileName, mimeType }, binary: { data } } paired with the item. Otherwise, it returns the tool job response data as JSON paired with the item.

Examples

Example 1: Convert first page of a PDF to JPEG, wait for completion, download output.

fileId: uploaded PDF ID; waitForCompletion: true; downloadOutput: true; toImageOptions.format: jpeg; toImageOptions.pages: 1

Links

Discussion