Generate PDF documents from HTML or templates

Docamatic is a simple API for generating high quality PDF documents.

Invoice PDF Document

Convert HTML to PDF

Generate high quality PDF documents using your own HTML. Simply provide a URL or HTML and let us do the work. Supports custom fonts and JavaScript.

HTML to PDF demo

    
        # Generate a PDF document from HTML

{
    "source": "HTML or URL here...",
    "format": "A4",
  	"name": "Daily Report"
}
    

Build faster with templates

Ready to go templates for invoices, packing slips, shipping labels and more. Post JSON and get a PDF document back. No document design to worry about!

See templates

Document Templates Screenshot

Send via Email

Emailing your PDF document at the time of creation is trivial. Supply an email address in your API request and we will send the generated PDF as an attachment.

    
        # Generate and email PDF document

{
    "source": "https://my-site.com/invoice.html",
    "email": {
        "to": "accounts@my-customer.com",
        "subject": "July Invoice"
    }
}
    

Keep track of your API requests

Monitor API usage and see the status of your webhooks from a simple dashboard.

Docamatic API Usage Dashboard

PDF Generation API

Fast, scalable and reliable

Let us help with generating your PDF documents so your team can focus on building great solutions. Take the burden off your infrastructure.

HTML to PDF Conversion

Highly accurate browser rendered PDF documents. Supports web fonts, flexbox, charts, SVG and page breaks.

Document Templates

Create professional PDF documents fast. Convert JSON to PDF. Templates for invoices, packing slips and more.

Developer Friendly

Our intuative REST API was built with simplicity in mind. Convert HTML to PDF with a single parameter.

Scalable

Our PDF API is powered by a serverless architecture capable of processing thousands of parallel requests at a time.

Privacy Focused

Choose if and how long your PDF documents should be stored or save them directly to your own S3 bucket.

Cost Effective

Predictable monthly subscription with no surprises. We don't charge extra for large PDF documents.

Hike Logo
Hike

We looked for a long time for a simple but effective API to allow us to generate high quality PDF documents without having to write a large amount of clunky CSS. Docamatic is the perfect solution, it was super easy to implement, works great and the support is second to none!

Kieran Headley
Kieran Headley
Co-Founder, Hike
DropCommerce Logo
DropCommerce

Before Docamatic, we were always having formatting issues with our custom PDF invoices. Using their API and templates, we've been able to completely forget about invoices and focus on our core business.

Start generating PDF documents in minutes

Generate 50 PDF documents per month for free - no credit card required.

Get API Key