Convert HTML to PDF.
No servers, no browser.

Transform HTML or centrally managed templates into professional PDFs. Simply send your data to our API – perfect for invoices, reports, and documents.

invoice.html
<!-- your template -->
<div class="invoice">
  <h1>{{ company }}</h1>
  <table>
    <tr><td>{{ item }}</td>
    <td>{{ price }}</td></tr>
  </table>
  <p>Total: {{ total }}</p>
</div>
{JS}
Generated invoice PDF

// live demo

Try it yourself

Use our interactive widget to generate PDFs from HTML in real-time.

HTML Input

PDF Output

The generated PDF will be displayed here.


// features

Everything you need for PDF generation

Professional-grade PDF conversion with full control.

Pixel-perfect rendering

Full Chromium rendering. Modern CSS, flexbox, grid, and web fonts come out exactly as in the browser.

JavaScript in your templates

Import ES modules from any CDN to generate QR codes, barcodes, and charts right inside the PDF.

QR Code guide

Async-aware capture

Doing async work? Set window.__RENDER_DONE__ when it finishes and the generator waits. No more blank pages.

Advanced docs

Nunjucks templating

Store the design once and submit only a templateID plus JSON data. We render it server-side.

Custom page geometry

Set width and height in millimeters, default to A4, or build any custom page size you need.

Automation-ready

REST API plus native Make.com and n8n modules. 600 free conversions every month, no credit card.

// use cases

Built for real-world use cases

From invoices to reports, our API handles it all.

Invoices & Receipts

Generate professional invoices automatically. Perfect for e-commerce, SaaS, and billing systems.

Reports & Analytics

Create data-rich reports with charts and tables. Export dashboards as PDF documents.

Certificates & Documents

Generate certificates, diplomas, and official documents with custom branding.

Content Export

Let users export blog posts, articles, or web pages as downloadable PDFs.

// new

Manage templates in a central UI.

Stop passing massive HTML strings through every workflow. Store your design once in our editor and send only a templateID plus your JSON data.

  • Centralized management & versioning
  • Lightweight API payloads. Only templateID + JSON
template.curl
curl -X POST https://e.customjs.io/pdf-template/inv_8291_prod \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "customer": "John Doe",
    "amount": "94.00",
    "currency": "USD"
  }'

One stored template · tiny payloads · versioned

// example

Perfect for invoices and documents

Generate professional invoices, receipts, and business documents with pixel-perfect accuracy.

INVOICE

Invoice #INV-2024-001

Your Company Name

123 Business Street

City, State 12345

Bill To:

Client Company

456 Client Avenue

City, State 67890

DescriptionQuantityPriceTotal
Web Development Services40 hrs$150.00$6,000.00
Design Services20 hrs$120.00$2,400.00
Subtotal:$8,400.00
Tax (10%):$840.00
Total:$9,240.00

This invoice layout can be converted to PDF with our API in seconds

Learn more about PDF Generation

Guides and tutorials for PDF generation

HTML Table to PDF: Complete Guide with Responsive Examples
·Guide

HTML Table to PDF: Complete Guide with Responsive Examples

Master HTML table to PDF conversion with landscape orientation, page breaks, and responsive patterns. Complete guide with examples for financial reports, data exports, and invoices. 600 free conversions/month.

pdfhtml-to-pdftable
Markdown to PDF: Complete Guide with Examples
·Guide

Markdown to PDF: Complete Guide with Examples

Convert Markdown to PDF with tables, code blocks, and custom styling. Complete guide with examples for API documentation, reports, and automated workflows. 600 free conversions/month.

markdownpdfmarkdown-to-pdf
PDF Generation in Power Automate: Complete Guide 2025
·Guide

PDF Generation in Power Automate: Complete Guide 2025

Generate professional PDFs in Power Automate with CustomJS. Create invoices, receipts, reports, and certificates with custom HTML templates, QR codes, and advanced formatting. No Azure Functions required.

power-automatepdfhtml-to-pdf
Make.com PDF Generation: Complete Guide 2025
·Guide

Make.com PDF Generation: Complete Guide 2025

Learn how to automate PDF generation in Make.com with CustomJS. Step-by-step guide with templates for invoices, HTML to PDF, and page extraction. 600 free PDFs/month.

makepdfautomation
HTML to PDF API: CustomJS vs Alternatives
·Comparison

HTML to PDF API: CustomJS vs Alternatives

Compare HTML to PDF conversion APIs for price, speed, and JavaScript support. CustomJS offers 600 free PDFs/month and easy Make.com integration.

pdfhtml-to-pdf
Airtable Accounting for Freelancers
·Guide

Airtable Accounting for Freelancers

Cost-effective alternative to QuickBooks & FreshBooks. Automatic PDF invoice generation with n8n, Make.com, or API integration.

airtableinvoiceaccounting
HTML Print Pagination & Footer
·Guide

HTML Print Pagination & Footer

Adding page numbers and footers to PDF documents. Explore 6 different approaches with interactive examples.<br>

pdfhtml-to-pdfpagination
HTML Invoice Generator  (+Free Templates)
·Guide

HTML Invoice Generator (+Free Templates)

Creating professional HTML invoices that convert perfectly to PDF is essential for any business. 5 beautiful invoice templates with live PDF generators.

pdfhtml-to-pdfinvoice
Common Issues in HTML-to-PDF Printing
·Guide

Common Issues in HTML-to-PDF Printing

Broken page breaks, margins, fonts, tables? Fix the most common HTML-to-PDF issues with practical CSS strategies and examples.

pdfhtml-to-pdftroubleshooting
HTML & CSS Tips for Better PDFs
·Guide

HTML & CSS Tips for Better PDFs

Master print styles with our Print CSS Cheatsheet. Learn tips, tricks, and code examples to create professional, print-ready HTML documents.

pdfhtml-to-pdfcss

Ready to generate PDFs?

Start converting HTML to PDF in minutes. No credit card required.