The best and easiest


As the only API powered by the PrinceXML HTML-to-PDF engine, DocRaptor provides powerful support for headers, page breaks, page numbers, flexbox, watermarks, accessible PDFs, and much more

Start your Free Trial
PDF Conversion API
Client logos Client logos square

Our HTML to PDF API is used by companies big and small


Unmatched Scale & Reliability

From small businesses to the Fortune 100, you can rely on DocRaptor

Uptime Guaranteed

We back our API with a 99.999% uptime guarantee. If you need reliability, DocRaptor is the service you can trust.

Any Size Document

We have no limits on document input or output size (and all documents cost the same, regardless of their size).

Infinite Throughput

Need thousands of documents per day? Our infrastructure can handle any throughput requirements.

Uniquely Powerful PDF Generation

Only DocRaptor provides an HTML to PDF API with these advanced styling and layout capabilities

Easy Headers & Footers

Instead of adding PDF headers and footers via a separate HTML file, DocRaptor headers and footers are part of your document HTML. And easily show (or hide) different headers and footer for different pages.

CSS Flexbox

DocRaptor lets you make PDFs with advanced CSS layout tools, including flexbox. You won't need to learn new tools or radically adjust your website to get a nice looking PDF.

Mixed Layouts & Sizes

Unlike competitors, DocRaptor lets you control the style, sizing and layout modes of individual pages in your document. In addition to selecting pages, you can style left and right pages differently, or the first and last pages.

Fine-Tune Page Breaks

Our rendering engine was built specifically for making PDFs and we fully support CSS3 Paged Media. This allows much greater control over page breaks, especially when dealing with tables and images.

Tagged PDFs

Create more accessible PDFs by using PDF profiles PDF/A-1a, PDF/A-3a, or PDF/UA-1. Tagged PDFs optimize the reading experience for assistive technology such as screen readers.

...and more!

Add crop marks, specify PDF bookmarks, or create standards-compliant documents. DocRaptor is the PDF converter with the most advanced features and the highest quality PDFs.

Security & Privacy

Document Retention Settings

Documents can be deleted immediately upon generation and retrieval, or stored longer so our support team can assist with you debugging and styling implementation.

Encrypted at Rest

All document input and output is encrypted when not in use by the conversion processes. We care deeply about maintaining the privacy of your information.

EU Standard & Certification

With hundreds of European customers, we strongly support GDPR, Privacy Shield, and other EU standards.

Development & Support

Debugging Help

Making the perfect document can be tricky. Our support team is happy to help debug your style or implementation problems and our documentation is the best in the industry.

Code Examples & Libraries

Libraries and code examples are available in every major language, including C#, Java, JavaScript, jQuery, .NET, Node, PHP, Python, Rails, Ruby, and more.

Free Test Documents

Every account includes unlimited watermarked test documents for easier setup, styling, and testing.

How DocRaptor Compares

DocRaptor is the better choice for PDF generation for most use cases

DocRaptor vs. Open Source Libraries

There are several popular free HTML-to-PDF libraries including wkhtmltopdf, PhantomJS, and Chrome Headless / Puppeteer. These tools use the Webkit or Chromium rendering engines, which are designed to display continuously scrolling webpages. In contrast, DocRaptor was built for generating multi-page documents.

This fundamental difference has a tremendous impact on PDF functionality such as page breaks, headers and footers, and variable page sizes. Our conversion engine provides layout and styling options (including CSS Paged Media support) that the open-source PDF engines simply cannot match.

Additionally, as a cloud-based API, we provide professional support, instant scalability, and guaranteed reliability without the costs of long-term maintenance for these libraries and their infrastructure.

DocRaptor vs. Commercial Conversion Libraries

There are several enterprise-level conversion software libraries, such as PDFreactor and Prince (DocRaptor uses PrinceXML for PDF generation). These engines create excellent PDF documents.

As an alternative to self-hosting these commercial libraries, DocRaptor offers a much lower price point and provides immediate scalability and reliability. Generating any significant volume of documents typically requires multiple servers, queue management, and other infrastructure —DocRaptor handles all this maintenance and overhead so you don’t have to.

There are also many inexpensive HTML to PDF API services that, at a glance, look very similar to DocRaptor, but they all use open-source, browser-based libraries. As a result, they also suffer from those library’s layout issues and limited functionality. As an official partner of Prince, DocRaptor provides only the highest-quality PDF generation.