PDF to Image API

POST

Render the pages of a PDF as PNG or JPG images.

PDF to Image renders the pages you choose from a PDF, uploaded or fetched from a URL, as PNG or JPG images and returns a download link for each, valid for 2 days, with its pixel size. The Free plan renders one page per call at 150 dpi; paid plans render up to 10 pages per call and can set the resolution from 72 to 300 dpi.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/pdftoimage
pdf
Click or drag a file to upload.pdf · max 400KB for live testing
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "pageCount": 14,
    "format": "png",
    "dpi": 150,
    "imageCount": 2,
    "expires": 1792400000000,
    "images": [
      {
        "page": 1,
        "imageName": "3b7e9d21-4c5a-4f80-a1d6-9e2c8b7f5a34-1.png",
        "width": 1275,
        "height": 1650,
        "dpi": 150,
        "size": 214533,
        "downloadURL": "https://storage.googleapis.com/apiverve/APIData/pdftoimage/3b7e9d21-4c5a-4f80-a1d6-9e2c8b7f5a34-1.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1792400000&Signature=SAMPLE"
      },
      {
        "page": 2,
        "imageName": "3b7e9d21-4c5a-4f80-a1d6-9e2c8b7f5a34-2.png",
        "width": 1275,
        "height": 1650,
        "dpi": 150,
        "size": 198207,
        "downloadURL": "https://storage.googleapis.com/apiverve/APIData/pdftoimage/3b7e9d21-4c5a-4f80-a1d6-9e2c8b7f5a34-2.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1792400000&Signature=SAMPLE"
      }
    ]
  }
}

About the PDF to Image API

Pages are rendered with Poppler, the PDF engine used by most Linux desktops, so text, vector graphics, images and page rotation come out as a PDF viewer shows them. Very large pages are rendered at a lower dpi so no image exceeds 25 megapixels, and each image reports the dpi it was rendered at. Encrypted PDFs are rejected.

What people use it for

Document Thumbnails
Show a preview image of the first page of uploaded PDFs in file lists and search results.
Page Previews
Display individual pages of a contract or report as images where a PDF viewer is not available.
OCR Pipelines
Turn scanned PDF pages into images for the Image to Text API or another OCR step.
Social and Email Images
Use a page of a brochure, menu or flyer PDF as an image in posts and newsletters.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use PDF to Image

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the PDF to Image API.

Read the docs →
How many renders does the Starter plan cover?
Starter covers 20,000 requests each month. At 10 credits per request, that works out to $1.50 per 1,000 requests, or about $0.0015 per request, whether it renders 1 page or 10. The Free plan includes 20 single-page requests per month for testing.
What does the Free plan return?
The Free plan renders one page per call, any page you choose, in PNG or JPG at 150 dpi, with a download link, pixel size and file size. A free request for more than one page is refused with a 403 that says so. Paid plans render up to 10 pages per call and add dpi, from 72 dpi for small thumbnails up to 300 dpi for print or OCR.
Which pages can I render?
Any pages of the PDF, given as page numbers and ranges such as 1-3,5: up to 10 per call on paid plans and 1 per call on the Free plan. Only the first page is rendered when pages is omitted. pageCount gives the length of the document so you can request the rest in further calls.
What happens with very large pages?
A page that would exceed 25 megapixels at the requested dpi, such as a poster or engineering drawing, is rendered at the highest dpi that fits. The dpi actually used is returned for each image.
How long are the images kept?
Each download link is a signed URL that expires after 2 days, given in the expires field as a Unix timestamp in milliseconds.

Ready to build with PDF to Image? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs