ChromicPDF v0.3.0 API Reference

Modules

ChromicPDF is a fast HTML-to-PDF/A renderer based on Chrome & Ghostscript.

Use this for multiple ChromicPDF instances.

This module contains helper functions that make it easier to to build HTML templates (body, header, and footer) that fully cover a given page. Like an adapter, it tries to harmonize Chrome's printToPDF options and related CSS layout styles (@page and friends) with a custom set of page sizing options. Using this module is entirely optional, but perhaps can help to avoid some common pitfalls arising from the slightly unintuitive and sometimes conflicting behaviour of printToPDF options and @page CSS styles in Chrome.