This article relies largely or entirely on a single source. (December 2019)
|Original author(s)||Michael Day|
|Developer(s)||YesLogic Pty Ltd|
|Initial release||April 2003|
13 / November 2019
20191023 / 23 October 2019
|Written in||Mercury, Rust|
|Operating system||Windows, macOS, Linux, Solaris, FreeBSD|
|Type||File format converter|
Prince (formerly Prince XML) is a computer program that converts XML and HTML documents into PDF files by applying Cascading Style Sheets (CSS). Prince is a commercial product, which is free to download and use for non-commercial purposes.
Prince supports many languages, including Thai, Indic scripts (Hindi, Bengali, Tamil, etc.) and right-to-left scripts like Arabic and Hebrew.
In April 2003, Prince 1.0 was released, with basic support for XHTML, Cascading Style Sheets (CSS), Scalable Vector Graphics (SVG), and arbitrary XML. This first version was a command-line program that supported Microsoft Windows and Linux; there was no graphical user interface for Windows yet.
In June 2012, Prince 8.1 added support for HTML5.
In subsequent releases, CSS support has steadily been extended, both to have comparable support with web browsers (such as Opera and Firefox), and to add support for print-specific features, like page breaks and footnotes.
Prince is available for several plaforms, including Windows, Linux, macOS, FreeBSD, and Solaris. Wrappers are available for Java SE, .NET Framework, ActiveX, PHP, Ruby on Rails and Node.js to help integrate Prince into websites and apps.
Prince was developed using the Mercury functional logic programming language.
Prince has good support for CSS (including CSS Flexible Box Model, from Prince 12) with proprietary extensions for print-related functionality not currently in the CSS standard (for example, footnote policies, specifying the size of the bleed area of the page when crop marks are enabled, creating running page headers and footers and similar).
Prince supports most of ECMAScript 5th edition, but not strict mode. Later editions of ECMAScript are not supported.
- Michael Day: I am the founder of YesLogic and the designer of Prince, software for getting web content onto paper.
- "Prince - Release Notes for Prince 13". www.princexml.com.
- "Prince - Latest builds". www.princexml.com.
- "Announcing the Allsorts Font Shaping Engine". yeslogic.com.
- "Prince - End User License Agreement". www.princexml.com.
- "Prince 12 released! - Prince forum". www.princexml.com.
- "Devanagari vowel sign support - Prince forum". www.princexml.com.
- Prince 5.1 Passes Acid2 Web Standards Project announcement, December 10, 2005
- CSS Paged Media Module Level 3, W3C
- "doc-refs · Prince Documentation". www.princexml.com.
- Making accessible tagged PDFs with Prince, 16 July 2019
- Steward, Sid. PDF Hacks: 100 Industrial-Strength Tips & Tools. O'Reilly. ISBN 0-596-00655-1.
- Fitzgerald, Michael. XML Hacks: 100 Industrial-Strength Tips & Tools. O'Reilly. ISBN 0-596-00711-6.
- Interview with Michael Day of Prince XML by Olimpiu Metiu, Page 33, Published at: June 28, 2010, Rails Magazine
- Prince XML: Generating High Quality PDFs from HTML + CSS, 15 Nov 2007, GoogleTechTalks, YouTube Video