Features

November 29, 2022

Generate PDF documents from HTML with Urlbox

The full power of Urlbox's rendering engine so you and your designers can make beautiful reports.

Jonathan Markwell
Jonathan Markwell
1 min read
Share this article:

If you're already generating PDFs with Urlbox you're not alone.

Our PDF feature is one of our most popular. It turns out much of the work required to make your screenshots excellent at scale also results in near-perfect PDFs. But there were a few bugs and missing features that needed ironing out.

Now generating PDFs with Urlbox is better than ever and you might find it better than anywhere else.

We've resolved some particularly hairy edge cases, especially for huge multi-page documents. We've heard other, (dedicated) PDF generating services, have flat out refused to handle some of the situations we now do.

This is all you need do to make a two page PDF:

curl -X POST https://api.urlbox.io/v1/render/sync \
-H 'Authorization: Bearer YOUR_URLBOX_API_SECRET' \
-H 'Content-Type: application/json' \
-d '{ "format": "pdf", "html": "<div class=\"page\"><h1>Page 1</h1></div><div class=\"page\"><h1>Page 2</h1></div>", "css": "div.page { page-break-after: always; page-break-inside: avoid;}"}'

You have the full power of Urlbox's rendering engine so you and your designers can make beautiful reports complete with anything you'd expect to render nicely in a browser. You can also find over a dozen PDF-specific options in our docs so you can make them just right.

Index

All Features

Free Trial

Designers, law firms and infrastructure engineers trust Urlbox to accurately and securely convert HTML to images at scale. Experience it for yourself.