PDF Api Hub icon

PDF Api Hub

HTML to PDF

Actions36

PDF to Image → PDF to PNG

AI-generated

Summary

Converts selected pages of a PDF to PNG images, with configurable resolution and optional resizing or background color. Provide the PDF by public URL or an incoming binary property, then choose whether the images are returned as hosted URLs, base64, both, or binary files.

Inputs

  • Input Type — Choose a public PDF URL (default) or a PDF from an incoming binary property.
  • PDF URL — Public URL of the PDF to convert; shown when Input Type is URL.
  • Binary Property Name — Name of the incoming binary property containing the PDF; defaults to data and is shown when Input Type is File.
  • Pages — Pages to convert, such as 1, 1-3, or 1,3,5; defaults to 1.
  • DPI — Output resolution in dots per inch; defaults to 150. The declared range is 72–300.
  • Quality — Compression quality from 1–100; defaults to 85. The property description says it only affects JPEG and WebP output.
  • Output Format — Choose hosted URL (default), base64 data in JSON, both, or a binary file.
  • Advanced Options — Optional width and height in pixels (0 keeps the original size), background color for transparent PNGs, and a custom output filename without an extension.

Output shape

Converted image output in the selected format.

The declared output choices are hosted URL, base64 in JSON, both, or raw binary. The provided source pack shows only the function signature for this operation, so it does not establish the exact response fields or how multiple selected pages are represented.

Links

Discussion