PDF to Image icon

PDF to Image

Render PDF pages as PNG, JPG, or WebP images using PDF API Hub

PDF to PNG

AI-generated

Summary

Converts PDF pages to PNG images using the PDF API Hub, taking a PDF from a public URL or binary property and returning hosted URL(s), base64 data, or a binary PNG file. You control page selection, DPI, and optional resizing; requires pdfapihubApi credentials.

Inputs

  • Input Type (required) — How to provide the PDF to convert.
  • PDF URL — Public URL of the PDF file to convert to image(s). Required when Input Type is URL.
  • Binary Property Name — Name of the binary property containing the PDF file to convert. Required when Input Type is File.
  • Pages — Page(s) to convert — single number like "1", range like "1-3", or comma-separated list like "1,3,5".
  • DPI — Output image resolution in dots-per-inch (72–300). Higher values produce sharper but larger images.
  • Quality — Image compression quality (1–100). Only affects JPEG and WebP output.
  • Output Format — How the converted image(s) are returned.
  • Advanced Options — Advanced options: Width, Height, Background Color, Output Filename.

Output shape

When Output Format is 'url', 'base64', or 'both', the node returns the API's JSON response (hosted URL and/or base64 data) as the item's json. When Output Format is 'file', the node returns { success: true } in json and attaches the PNG image as binary data in binary.data. Each output item is paired with the corresponding input item.

Return shape depends on Output Format.

Examples

Example 1: Convert PDF to PNG with URL input and hosted URL output

pdf_to_png

Example 2: Convert PDF to PNG with binary file input and binary file output

pdf_to_png

Links

Discussion