Generate pixel-perfect invoices, reports, and tickets
directly from your backend logic.
Send your raw HTML string, and get a PDF buffer back.
const invoiceHtml = \`
Invoice #1024
Billed to: John Doe
Total: $49.00
\`;
const response = await fetch('https://rocketutils.dev/v1/pdf', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_KEY'
},
body: JSON.stringify({ html: invoiceHtml })
});
const pdfBuffer = await response.arrayBuffer();
// Save or email this buffer!