Prince Commercial HTML and CSS publishing engine for producing paginated PDF documents.
Overview Prince is a document-conversion engine that turns HTML and other supported markup into PDFs using CSS-based layout. Its publishing features include page regions, numbering, footnotes and cross-references. It can be integrated into applications or run as installed software, with commercial licensing matched to the deployment and intended document use.[1] [4]
Contents Publishing layout Prince treats the output as discrete pages with defined dimensions and regions. CSS can control running headers, footers, page counters and different treatment of selected pages. Recto and verso handling and inside/outside margins are relevant to bound publications. A successful HTML import therefore starts a paginated layout process; it is not simply an image capture of how the same content appeared in a browser window.[2]
Scripting boundaries JavaScript can modify input documents and generate content before layout, with additional hooks for inspecting or repeating layout. It is disabled by default. The scripting reference describes broad ES5 support and incomplete ES6 support, rather than a current general-purpose browser runtime. Interactive click events do not run as part of print conversion. Existing client-side applications may need a prepared document or adapted script instead of being passed through unchanged.[3]
Installation and application interfaces The download site offers native packages for several operating systems and describes Python and Node.js packages that include the engine. Other wrappers and Docker images provide additional deployment routes. Cloud services named by the vendor offer separate API access, while Prince for Books is identified as a separate branch. These are related ways to use the technology, not interchangeable packages or evidence of identical commercial terms.[6] [7]
Licensing by use Commercial site licensing covers server deployments under a quoted annual arrangement, while OEM licensing addresses redistribution. The FAQ states that generating documents for customers still requires commercial licensing even if those documents are not sold individually. Free non-commercial use carries a required logo on the first page. It also requires prominent links to Prince where PDFs are served and on a partners page; emailed PDFs must be accompanied by the Prince URL in the message body. A desktop entitlement for interactive internal work should therefore not be assumed to cover a customer-facing automated service.[4] [5]
Substitution considerations Prince can substitute for WeasyPrint for suitable HTML/CSS-to-PDF publishing workflows. Both accept web-oriented content, but their layout engines and extension support differ. Moving a template requires checking pagination and typography, while any scripting must fit Prince's documented execution model. The comparison is between document-generation tasks rather than a claim that one engine reproduces the other's output exactly.[1] [2] [3] [8]
References Prince overview HTML-to-PDF, typography and integration
vendor · retrieved 2026-10-07 Prince paged media Page regions, spreads, numbering and print layout
vendor · retrieved 2026-10-07 Prince scripting Opt-in JavaScript, language limits and non-interactive events
vendor · retrieved 2026-10-07 Prince licensing options Commercial site, OEM, per-server and desktop scope
vendor · retrieved 2026-10-07 Prince license FAQ Customer-facing documents, redistribution, and non-commercial first-page logo and linking requirements
vendor · retrieved 2026-10-14 Prince distribution Bundled Python/Node engines, wrappers and separate books branch
vendor · retrieved 2026-10-07 Prince 17 downloads Windows, macOS, Linux and FreeBSD packages
vendor · retrieved 2026-10-07 WeasyPrint overview Open-source HTML/CSS PDF engine
vendor · retrieved 2026-10-07 https://www.princexml.com/purchase/license_faq/ License FAQ: non-commercial first-page logo, prominent website links and accompanying email URL requirements; checked 2026-10-14.
vendor · retrieved 2026-10-07 Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.