Skip to content
SDKs

Client libraries, or plain HTTP.

The SDKs are thin wrappers over the same REST API — use one for the ergonomics, or skip them entirely.

Node.js

npm install pagemint
const pdf = await pm.render({ template: "invoice-v4", data });

Python

pip install pagemint
pdf = pm.render(template="invoice-v4", data=data)

PHP

composer require pagemint/pagemint
$pdf = $pm->render('invoice-v4', $data);

cURL / REST

no install — plain HTTP
curl -X POST https://api.pagemint.dev/v1/render

Every client is open source and versioned independently of the API — pin a major version and it stays stable under you.