PDF to PNG icon

PDF to PNG

Convert PDF pages to PNG images

PDF to PNG

AI-generated

Summary

Convert PDF binary data to one or more PNG images.

Inputs

  • binaryPropertyName — Name of the binary property containing the PDF file
  • viewportScale — Viewport scale factor (1.0 native resolution, 2.0 double, etc.)
  • outputPropertyName — Name of the binary property to write the PNG output to
  • pageRange — Pages to convert, e.g., "1-3" or "1,3,5"; leave empty for all pages

Output shape

An array of objects, each containing a json object with page metadata and a binary field named by outputPropertyName holding the PNG data

Each result corresponds to a converted page; if pageRange is set only those pages are processed, and the binary field may be omitted on error items

Examples

Example 1: Convert a PDF stored in the 'data' property and write PNGs to the 'pngData' property

binaryPropertyName: data, outputPropertyName: pngData, viewportScale: 2, pageRange: ''

Example 2: Extract pages 1-3 from a PDF in 'file' and store each PNG in 'pages'

binaryPropertyName: file, outputPropertyName: pages, viewportScale: 1.5, pageRange: '1-3'

Links

Discussion