Turn any PDF form into an API
Upload a form, get a JSON schema and one endpoint that returns the completed document — with embeddable forms, e-signatures, per-audience field rules, and signed webhooks.
Drop a PDF here to build the API it would generate
No account needed · nothing is stored · images & text work too
How it works
Upload your form
Drop in any PDF — an NHS form, an intake sheet, a contract. Images and text convert automatically. We read the fields for you.
Get the schema
A JSON schema of every input, or a ready-made SurveyJS form to drop into your app.
POST values, get the PDF
Send field values to your endpoint and receive the completed document back instantly.
Everything you need to ship PDF paperwork
Automatic field extraction
Every text box, checkbox, radio, dropdown, and list becomes a typed, named field — no manual mapping.
AI detection for flat PDFs
Scanned or flat forms with no fields? Claude reads the pages and proposes named, positioned inputs.
Embed the real form
A JavaScript SDK renders the actual PDF on your site with inputs positioned exactly on the page.
Signatures built in
Add draw-to-sign fields; signatures are stamped into the PDF and returned in the submission JSON.
Restrict fields by audience
Give patients one view and staff another — hide, lock, require, or preset fields per profile, enforced server-side.
Signed webhooks to many servers
Deliver every completed PDF and its values to one or more endpoints, each HMAC-signed so you can verify it.
Frequently asked questions
How do I turn a PDF form into an API?
Upload a fillable PDF to doc2api. It extracts every form field, generates a JSON schema, and gives you an authenticated endpoint. POST your field values to that endpoint and it returns the completed PDF.
Can I fill a PDF that has no form fields?
Yes. For flat or scanned PDFs, use the visual overlay editor to draw named boxes on the page, or let AI detection propose fields automatically. Values are printed at those exact positions.
Can users sign the PDF?
Yes. Mark fields as signatures and the embedded form shows a draw-to-sign pad. The drawn signature is stamped into the PDF and included in the returned data as an image.
Can different people fill different parts of the form?
Yes. Form profiles let you define audiences — for example patient and doctor — and restrict, require, hide, or preset fields per audience. The API enforces the rules on every submission.
How are completed documents delivered to my system?
You can receive the completed PDF in the API response, or configure one or more webhook endpoints. Each webhook delivery is signed with a per-endpoint secret so your servers can verify it.
Ready to ship your first form API?
Create a free account and get a live endpoint, an embeddable form, signatures, and webhooks in minutes.