# Prince

Commercial HTML and CSS publishing engine for producing paginated PDF documents\.

ID: Q1620 · Revision: 1733

Type: software · License: Proprietary; commercial, OEM and restricted non\-commercial licenses[^purchase][^faq] · Status: active

Website: https://www.princexml.com/



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\.[^home][^purchase]

## 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\.[^paged]

## 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\.[^script]

## 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\.[^download][^platforms]

## 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\.[^purchase][^faq]

## Substitution considerations

Prince can substitute for [WeasyPrint](/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\.[^home][^paged][^script][^weasy]

## Capabilities and substitutions

### Paged\-media layout — supported

Supports page regions, running content, spreads and page numbering through print\-oriented CSS\.[^paged]

Use case: HTML/CSS document publishing to PDF · Platforms: Windows, macOS, Linux, FreeBSD · Region: Version, build and integration requirements apply

### Document JavaScript — limited

Must be enabled; print\-oriented events and documented language support differ from a modern interactive browser\.[^script]

Use case: HTML/CSS document publishing to PDF · Platforms: Windows, macOS, Linux, FreeBSD · Region: Version, build and integration requirements apply

### Free non\-commercial use — limited

The vendor permits non\-commercial use with a required first\-page logo and prominent Prince links where PDFs are served and on a partners page, or a Prince URL in accompanying email text\. Customer\-facing commercial documents require appropriate licensing\.[^source-9]

Use case: HTML/CSS document publishing to PDF · Platforms: Windows, macOS, Linux, FreeBSD · Region: Version, build and integration requirements apply

### [Substitute for WeasyPrint](/weasyprint) — limited

Can cover HTML/CSS\-to\-PDF generation with a commercial engine; templates, scripts and license scope require migration review\.[^home][^paged][^purchase][^weasy]

Use case: HTML/CSS document publishing to PDF · Platforms: Windows, macOS, Linux, FreeBSD · Region: Version, build and integration requirements apply

## References

[^home]: [Prince overview](<https://www.princexml.com/>) — HTML\-to\-PDF, typography and integration (vendor; retrieved 2026-10-07T12:38:26.825Z)

[^paged]: [Prince paged media](<https://www.princexml.com/doc/paged/>) — Page regions, spreads, numbering and print layout (vendor; retrieved 2026-10-07T12:38:26.825Z)

[^script]: [Prince scripting](<https://www.princexml.com/doc/javascript/>) — Opt\-in JavaScript, language limits and non\-interactive events (vendor; retrieved 2026-10-07T12:38:26.825Z)

[^purchase]: [Prince licensing options](<https://www.princexml.com/purchase/>) — Commercial site, OEM, per\-server and desktop scope (vendor; retrieved 2026-10-07T12:38:26.825Z)

[^faq]: [Prince license FAQ](<https://www.princexml.com/purchase/license_faq/>) — Customer\-facing documents, redistribution, and non\-commercial first\-page logo and linking requirements (vendor; retrieved 2026-10-14T03:27:00Z)

[^download]: [Prince distribution](<https://www.princexml.com/download/>) — Bundled Python/Node engines, wrappers and separate books branch (vendor; retrieved 2026-10-07T12:38:26.825Z)

[^platforms]: [Prince 17 downloads](<https://www.princexml.com/download/17/>) — Windows, macOS, Linux and FreeBSD packages (vendor; retrieved 2026-10-07T12:38:26.825Z)

[^weasy]: [WeasyPrint overview](<https://doc.courtbouillon.org/weasyprint/stable/>) — Open\-source HTML/CSS PDF engine (vendor; retrieved 2026-10-07T12:38:26.825Z)

[^source-9]: [https://www\.princexml\.com/purchase/license\_faq/](<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-07T12:38:26.825Z)

Source revision: https://substitutefor.net/entities/Q1620?revision=1733
