Skip to main content

Making PDF Documents with Drupal

Jonathon Fruchte avatar
Written by Jonathon Fruchte
Updated over 10 months ago

Creating PDFs with Drupal is effortless with this community contributed module for Drupal 10+. If you need support for older version of Drupal, please use the DocRaptor Drupal PDF add-on for the Print module. DocRaptor is a commercial HTML to PDF API built specifically for making PDFs. Advantages of using DocRaptor over using open-source libraries include:

  • Support & Document Log: PDF generation is tricky, especially with parsing engines that are designed for making web pages, not PDFs. DocRaptor support will help you debug any styling issues and our built-in logging makes it easy to detect problems with HTML parsing or Javascript execution.

  • Maintenance Free: wkhtmltopdf and other open-source libraries are notoriously fickle to install and maintain. DocRaptor has guaranteed uptime, unlimited throughput, and never requires any maintenance.

  • Document Quality & Size: Generally speaking, DocRaptor will create smaller files than wkhtmltopdf or other WebKit-based projects, especially with more complex or larger documents.

  • CSS Paged Media Support: Page numbers, headers and footers, and customized page sizes can be added right in your CSS.

The DocRaptor API is used in many different projects including:

  • Invoices & Estimates

  • Reports (we support JavaScript charts)

  • Brochures (we support custom web fonts)

  • eBooks (hundred of pages? lots of images? no problem!)

We also owe a big thanks to Tomato Elephant Studio for contributing the module for newer versions of Drupal and to Colorado Springs-based Monarch Digital for building and sharing the DocRaptor Drupal PDF add-on. If you need any assistance with Drupal websites, look them up.

Did this answer your question?