HTML in.
PDF out.
One HTTPS call turns your HTML into a PDF, rendered with Chromium or Forme.
import { readFile, writeFile } from "node:fs/promises";const res = await fetch("https://api.eu.revecto.dev/v1/convert", { method: "POST", headers: { Authorization: `Bearer ${process.env.REVECTO_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ engine: "chromium", html: await readFile("packing.html", "utf8"), options: { paper_size: "A4" }, }),});if (!res.ok) throw new Error(await res.text());// res.headers.get("content-type") === "application/pdf"await writeFile("packing.pdf", Buffer.from(await res.arrayBuffer()));
Plain HTTPS + JSON.No SDK to install.Works from any language with an HTTP client.
Templates
Save the layout once. Send only the data.
Store an invoice, a contract, a report as a versioned template. Then call /v1/render with a JSON object and get the filled document back. Same quota, same limits. Every version is kept and can be restored, placeholders are filled from your JSON, and the dashboard previews changes live.
- Engines
- Set
engineon each request.chromiumrenders everything a browser prints.formereturns simpler documents several times faster. - Templates
- Store the layout once and post only the JSON to
/v1/render. Change the layout without redeploying your code. - Custom fonts
- Link a Google Font or declare
@font-face, and the PDF is set in your typeface. - Images and stylesheets
- Reference images, stylesheets and fonts by URL. Read
X-Skipped-Resourcesto know when one could not be fetched. - Headers and footers
- Declare
@pagemargin boxes withcounter(page)andcounter(pages)to print a header, a footer and the page number on every page. - Page setup
- Send
paper_size,landscapeand margins with the request to print on A3, A4, A5, Letter, Legal or Tabloid. - Tagged PDF
- Every PDF is tagged for screen readers without any setup. Send
tagged: falsewhen you want a smaller file. - Regions
- Create the project in
eu,usorapac, then callapi.eu,api.usorapi.apacfrom servers nearby.
Pricing
Plans and limits.
- Free$0Get an API key
- 100 PDFs a month
- 1 API key
- 2 templates
- Pro$19 / month
- 5 000 PDFs a month
- 10 API keys
- 50 templates
- EnterpriseCustom
- Unlimited PDFs a month
- Unlimited API keys
- Unlimited templates
Every plan includes HTML to PDF (/v1/convert), templates with data (/v1/render), the usage dashboard and call log, and version history with restore.
On Pro, a credit pays for one PDF once the monthly PDFs are used up. Credits never expire.
- 1 000 credits · $5
- 5 000 credits · $22
- 20 000 credits · $80
Compare all limits
PDFs per month are counted across all projects of an organization. Every other limit applies to each project.
100 PDFs a month, free. No card, no expiry.
Create a key in the dashboard and paste the request above.
Get an API key