MoPDF icon

MoPDF

Extract text from PDFs, convert pages to images and generate AI-ready output — without any API, running entirely local inside n8n.

PDF to Images

AI-generated

Summary

Convert specified pages of a PDF file into images at a chosen resolution and format.

Inputs

  • DPI — Resolution of the output images in DPI; higher values yield better quality and larger file sizes. Must be between 72 and 600.
  • Format — Output image format, either PNG (lossless, recommended for OCR) or JPEG (compressed, smaller files with slight quality loss).
  • Pages — Which pages to convert; either all pages or specific pages by number.
  • Page Numbers — Comma-separated page numbers to convert, applicable if 'Specific Pages' is selected.
  • Input Binary Property — Name of the binary property on the incoming item that contains the PDF file.
  • Output Binary Property — Name of the binary property where the resulting image files will be stored.

Output shape

a list of items, each representing a converted PDF page as an image with binary data

Each output item includes JSON metadata about the page (such as page number, total pages, filename, format, dimensions, and DPI) alongside the binary image data under the specified output binary property. One output item is created per converted page.

Examples

Example 1: Converting a multi-page PDF to PNG images at 300 DPI

Set DPI to 300, Format to PNG, Pages to All, Input Binary Property to the source PDF binary name, Output Binary Property to desired binary name for images.

Links

Discussion