Post JSON, receive PDF
Create PDFs from scratch
{
"title": "IRS W-4",
"data": {
"name": "Robin W. Smith",
"filingStatus": "single",
"dateOfBirth": "1985-07-03",
"employerEIN": "981234567",
"employerName": "Awesome Labs Inc."
}
}
POST https://app.useanvil.com/api/v1/generate-pdf
{
"type": "html",
"title": "Widget Invoice",
"data": {
"html": `
<h1 class='header-one'>
What is Lorem Ipsum?
</h1>
<p>
Lorem Ipsum is simply dummy text of
the printing and typesetting industry.
Lorem Ipsum has been the industry's
standard dummy text ever since the
<strong>1500s</strong>...
</p>
`,
"css": `
body { font: 'Open Sans'; color: #171717; }
.header-one { text-decoration: underline; }
.header-two { font-style: underline; }
`,
},
}
POST https://app.useanvil.com/api/v1/generate-pdf
{
// You can also omit "type" as "markdown" is the default.
"type": "markdown",
"title": "Widget Invoice",
"data": [
{
"label": "Name",
"content": "Sally __Example__",
}, {
"table": {
"rows": [
["Description", "Quantity", "Price"],
["4x Large Wigets", "4", "$40.00"],
["100x Medium Sized Widgets in darkblue",
"10", "$100.00"],
],
},
},
],
}
Try our API and no-code tools to see how easy it is to convert PDFs into Webforms, e-sign PDFs, and embed Workflows in your application. No credit card required.
Our Maker plan includes 500 PDFs filled or generated over API, 5 Etch e-signatures, and 5 Workflows each month.
Contact us for a full demo