Logo
POST /api/pdf/form/visualize

PDF Form Visualization API

Get each page of a PDF form as an image with a numbered box on every field, plus a legend of which field each number is. Made for AI agents that fill forms.

  • Free plan
  • No credit card

Request

curl -X POST https://apdf.io/api/pdf/form/visualize \
  -H "Authorization: Bearer TOKEN" \
  -d file="FILE_URL" \
  -d pages="1"

Spot the box.
Know the field.

Every field to fill gets a numbered box, in reading order. The legend tells your agent which field each number is.

Your PDF
Full name
Contact me by
Email Phone
Send me the newsletter
Visualize
Image, fields numbered
Full name
1
Contact me by
2 Email 3 Phone
4 Send me the newsletter
Plus a legend: which field each number is
1 full_name
2 contact Email
3 contact Phone
4 newsletter Yes
What the images show
Fields to fill
A tinted box with a numbered badge
Numbers
Reading order, running on across pages
Colors
Neighbouring boxes get different ones
Hidden fields
A dashed box, numbered after the rest
Read-only fields
Not marked, just like buttons
Resolution
50 to 200 dpi, your choice

Built for agents.

Field names rarely say what a field is for. The page does, and the numbers let an agent point at it.

Vision agents

Let a vision model look at the page, find the box next to "Date of birth" and answer with that field's number.

Dense grids and tables

Tell apart the cells of a crowded table or a long row of checkboxes, each with its own number and color.

Map a form once

Open the numbered pages of a recurring form and note which field name belongs to which printed question.

Review the mapping

Show a person the same numbered page the agent worked from, so they can check its choices before filling.

Visualize from anywhere.

Hand numbered pages to the AI step you already run. One account and one monthly allowance behind every route.

Your code

One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.

POST /api/pdf/form/visualize
Open the endpoint docs
Zapier

Pick the action in any Zap and map files from earlier steps. No code and no servers to run.

Visualize PDF Form
Use it in Zapier
n8n

Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.

Visualize PDF form
Use it in n8n
AI agents

Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.

visualize-pdf-form
See what agents can do

1,000 form visualizations
a month. Free.

Start on the free plan and move up only when your volume does — up to 1,000,000 operations a month on Business.

  • One call is one operation, however many pages.
  • Only calls that do the work are counted.
  • Hard limits, so no surprise overage charges.
Plan PDF operations / month
Hobby Free
$0 / month
1,000
Pro
$39–$99 / month
20,000 – 60,000
Business
$149–$899 / month
100,000 – 1,000,000

Visualizing PDF forms, answered

By default every page with a field to fill. Choose pages with the pages parameter, like 1,4,6, 2,6-z or r3-r1. Pages you choose are rendered even when they have no fields.
No, the numbers only exist in this response. The legend gives the name behind each number, and the option for checkboxes and radios, which is exactly what the fill endpoint takes.
Yes. Badges are sized in pixels of the image rather than of the page, so they stay legible at any resolution. A lower dpi just gives your agent smaller images to look at.
Forms built with regular PDF form fields work, also when they carry an XFA form as well. Forms that exist only as XFA, without regular fields, are not supported.
Each page comes with a download URL that stays valid for 60 minutes. Store the images on your side if you need them longer.
After the API call

Your code made the PDF.
Then it went dark.

Opened, read, signed or ignored — you never see any of it. Send the PDFs you generate as personal links, and every open, page read, comment and signature comes back to your software as a webhook. Need it signed? Same link. Same account, same API key, one more call.

Your PDF, after sending Live
document:loaded CFO
page:read p4 · 38s
signature:signed 11:48

API · Webhook · MCP

Show your agent
the form it fills.