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"
const data = new FormData();
data.append('file', 'FILE_URL');
data.append('pages', '1');
fetch('https://apdf.io/api/pdf/form/visualize', {
headers: {'Authorization': 'Bearer TOKEN'},
method: 'POST',
body: data
})
.then(response => response.json())
.then(json => console.log(json));
use GuzzleHttp\Client;
$client = new Client();
$response = $client->post(
'https://apdf.io/api/pdf/form/visualize', [
'headers' => [
'Authorization' => 'Bearer TOKEN'
],
'form_params' => [
'file' => 'FILE_URL',
'pages' => '1'
]
]);
$body = $response->getBody();
echo json_encode($body->getContents());
require 'rest-client'
response = RestClient.post(
'https://apdf.io/api/pdf/form/visualize',
{
'file' => 'FILE_URL',
'pages' => '1'
},
{
Authorization: "Bearer TOKEN"
}
)
puts response.body
import requests
response = requests.post(
'https://apdf.io/api/pdf/form/visualize',
headers = {
'Authorization': 'Bearer TOKEN'
},
data = {
'file': 'FILE_URL',
'pages': '1'
}
)
print(response.text)
import (
"fmt"
"github.com/go-resty/resty/v2"
)
func main() {
client := resty.New()
data := map[string]string{
"file": "FILE_URL",
"pages": "1"
}
resp, _ := client.R().
SetFormData(data).
SetHeader("Authorization", "Bearer TOKEN").
Post("https://apdf.io/api/pdf/form/visualize")
fmt.Println(resp.String())
}
import okhttp3.*;
class Pdf {
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient();
FormBody formBody = new FormBody.Builder()
.add("file", "FILE_URL")
.add("pages", "1")
.build();
Request request = new Request.Builder()
.url("https://apdf.io/api/pdf/form/visualize")
.addHeader("Authorization", "Bearer TOKEN")
.post(formBody)
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
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.
- 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.
One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.
POST /api/pdf/form/visualize
Pick the action in any Zap and map files from earlier steps. No code and no servers to run.
Visualize PDF Form
Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.
Visualize PDF form
Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.
visualize-pdf-form
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.
Visualizing PDF forms, answered
PDF form tutorials
Prefill PDF Forms from Google Sheets with n8n
Each new row in Google Sheets fills your existing PDF form through the Apdf n8n node, optionally flattened, then the PDF is saved to Google Drive and emailed to the member. No code, no template builder — and the API logs show exactly why a row was rejected.
Fill Out Any PDF Form by Asking Claude
Chat assistants can tell you what goes into a PDF form, but they can't write it in. Connect Claude to Apdf over MCP and it sees the form as numbered boxes, matches your plain-language details to the right fields and dropdown options, and hands back the filled PDF — flattened if you want it locked.
Get PDF Form Field Names and Values in Python
Python form libraries hand you raw PDF objects to decode. Send the form URL to the Apdf API instead and get every field as JSON — name, value in a Python-friendly shape, options, required flag and the question printed next to it — then turn a folder of filled rental applications into a CSV that flags missing answers.
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.
API · Webhook · MCP