Printed by Chromium
CSS, web fonts, @page rules, page breaks, and headers and footers with page numbers, as Chrome prints them.
Send HTML, or a template and JSON data, and get back a print-ready PDF or image: invoices, receipts, certificates, reports and labels, printed by Chromium.
100 free documents / monthNo credit card required
curl -X POST https://api-printmint.plxi.us/v1/pdf/render \
-H "X-API-Key: sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"css": "body { font-family: Inter, Arial, sans-serif; padding: 20mm; } h1 { color: #10b981; }",
"html": "<html><head><title>Hello</title></head><body><h1>Hello from Printmint</h1><p>This page was printed from HTML.</p></body></html>",
"inline": true,
"pdf": {
"footer_html": "<div style=\"width:100%;font-size:8px;text-align:center\"><span class=\"pageNumber\"></span> / <span class=\"totalPages\"></span></div>",
"margin": {
"bottom": "15mm"
},
"page_size": "A4"
}
}'One header, one request, useful results.
A straightforward API, with the tools to take it from your first experiment to production.
CSS, web fonts, @page rules, page breaks, and headers and footers with page numbers, as Chrome prints them.
Invoice, receipt, certificate, report and shipping label: send JSON, get a PDF. Or save your own Jinja templates.
Your data is escaped, so a name with <script> in it prints as text. Templates load nothing from the network.
html_to_pdf, render_template_pdf and html_to_image work as MCP tools in Claude and other agents.
Turn every invoice and receipt into a PDF from the JSON your app already has, with the invoice template or your own.
Print reports and statements with headers, footers and page numbers from the HTML your app renders.
Call html_to_pdf over MCP, or the REST endpoint from any automation tool's HTTP step.
Start free with your Plexsicity account.
Create a key in your dashboard.
Send JSON with an X-API-Key header.
Explore examples from the API’s actual operation catalog, then try them in your workspace.
Print HTML to a PDF, with page size, margins, headers and footers.
POST /v1/pdf/render{
"css": "body { font-family: Inter, Arial, sans-serif; padding: 20mm; } h1 { color: #10b981; }",
"html": "<html><head><title>Hello</title></head><body><h1>Hello from Printmint</h1><p>This page was printed from HTML.</p></body></html>",
"inline": true,
"pdf": {
"footer_html": "<div style=\"width:100%;font-size:8px;text-align:center\"><span class=\"pageNumber\"></span> / <span class=\"totalPages\"></span></div>",
"margin": {
"bottom": "15mm"
},
"page_size": "A4"
}
}{
"bytes": 18342,
"content_type": "application/pdf",
"credits": 1,
"pages": 1,
"pdf_base64": "JVBERi0xLjcKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29kZT4+..."
}Fill in a template with JSON data and print it as a PDF.
POST /v1/pdf/template{
"data": {
"currency": "USD",
"customer": {
"address": [
"400 Market Street, Suite 12",
"San Francisco, CA 94105"
],
"email": "[email protected]",
"name": "Acme Robotics Inc."
},
"due": "2026-11-30",
"issued": "2026-10-31",
"items": [
{
"description": "Website redesign: discovery and wireframes",
"quantity": 1,
"unit_price": 2400
},
{
"description": "Design system components",
"quantity": 12,
"unit_price": 150
},
{
"description": "Hosting, October",
"quantity": 1,
"unit_price": 49.5
}
],
"notes": "Thank you for your business. Please pay by bank transfer within 30 days and quote the invoice number.",
"number": "INV-2026-0142",
"payment": [
{
"label": "Bank",
"value": "First National Bank"
},
{
"label": "Account name",
"value": "Northwind Studio LLC"
},
{
"label": "Account",
"value": "1234 5678"
},
{
"label": "Routing",
"value": "021000021"
}
],
"seller": {
"address": [
"18 Harbour Street",
"Portland, OR 97204",
"United States"
],
"email": "[email protected]",
"name": "Northwind Studio",
"tax_id": "12-3456789"
},
"tax_rate": 0.0875
},
"inline": true,
"template": "invoice"
}{
"bytes": 41207,
"content_type": "application/pdf",
"credits": 1,
"pages": 1,
"pdf_base64": "JVBERi0xLjcKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29kZT4+...",
"template": "invoice"
}Simple, usage-based pricing.
Start free, upgrade when you need more.
One credit for each PDF or image, up to 50 pages, and one for each merge. Listing, saving and deleting templates is free, and a call that fails is never charged.
Each response carries the PDF as base64 (pdf_base64) or as a download link (file). Send "inline": true to always get it in the response, up to 5 MB.
Yes. Link them from your HTML, with base_url for relative paths, or embed them as data: URLs. Templates print offline by default, so give them images as data: URLs or set offline to false.
The HTML and data you send are used to print the document and aren't stored. Templates you save are kept until you delete them, and stored files are deleted after a few days.
No. Templates use Jinja syntax with no file, network or include access, every value is escaped, and the page's own scripts run in a sandboxed Chromium that can't reach private networks.
Get your free key and make your first request with Printmint.