Generate professional PDF invoices from HTML templates via API. Integrate with your billing system for automatic invoice creation.
const response = await fetch('https://api.toolcenter.dev/v1/pdf', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
html: invoiceHtml,
format: 'A4',
printBackground: true
})
});
const pdf = await response.blob();