Prince (software)

Prince
Original author(s)Michael Day[1]
Developer(s)YesLogic Pty Ltd
Initial releaseApril 2003
Stable release
15.2[2] / October 2023; 14 months ago (October 2023)
Preview release
20191023 / 23 October 2019; 5 years ago (2019-10-23)[3]
Written inMercury, Rust[4]
Operating systemWindows, macOS, Linux, Solaris, FreeBSD
TypeFile format converter
LicenseFreemium
Websitewww.princexml.com

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.[5]

Prince supports all common web standards, including HTML, CSS and JavaScript, through its own code. That is, Prince is not based on a browser engine, but implements its own engine.

Prince can generate accessible PDFs conforming to the PDF/UA profile (ISO 14289, the International Standard for accessible PDF technology) that can be used by people with assistive technologies.[6]

Prince supports many languages, including Thai, Indic scripts (Hindi, Bengali, Tamil, etc.)[7] and right-to-left scripts like Arabic and Hebrew.

Prince is developed by YesLogic, a small company based in Melbourne, Australia. Since 2004, Håkon Wium Lie, the co-creator of CSS, has been chairman of the board.

History

[edit]

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 December 2005, Prince 5.1 passed the Acid2 test from the Web Standards Project.[8] It was the third user agent to pass the test, after Safari and Konqueror.

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 platforms, 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.

Technical summary

[edit]

Prince was developed primarily using the Mercury functional logic programming language.

The main driving force behind Prince is the standard CSS3-paged[9] that integrates paged media (including PDF) layout specification with any other W3C technologies: HTML4, HTML5, XHTML, and "free XML", working or not with JavaScript.

More experimental facilities for print needs (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) are being standardized in the Generated Content for Paged Media (css-gcpm-3) CSS module.

Prince has good support for CSS, with a print focus: better than web browsers for print-specific CSS modules such as the aforementioned css-page-3 and css-gcpm-3; while support other modules is good relative to other user agents not using a web browser engine but not always as well as web browsers:[10] for example, CSS Flexible Box Model was added in Prince 12 (2018), whereas CSS Grid Layout (css-grid-1) is not yet present in Prince 14.

Prince supports most of ECMAScript 5th edition, but not strict mode. Later editions of ECMAScript are largely not supported.[10]

References

[edit]
  1. ^ Michael Day Archived 2011-10-11 at the Wayback Machine: I am the founder of YesLogic and the designer of Prince, software for getting web content onto paper.
  2. ^ "Prince - Release Notes for Prince 15".
  3. ^ "Prince - Latest builds". www.princexml.com. Archived from the original on 2019-11-01. Retrieved 2019-11-01.
  4. ^ "Announcing the Allsorts Font Shaping Engine". yeslogic.com. Archived from the original on 2020-12-18. Retrieved 2021-02-18.
  5. ^ "Prince - End User License Agreement". www.princexml.com. Archived from the original on 2019-11-01. Retrieved 2019-11-05.
  6. ^ "Prince 12 released! - Prince forum". www.princexml.com. Archived from the original on 2020-08-13. Retrieved 2018-08-29.
  7. ^ "Devanagari vowel sign support - Prince forum". www.princexml.com. Archived from the original on 2022-08-11. Retrieved 2019-11-05.
  8. ^ Prince 5.1 Passes Acid2 Archived 2006-12-27 at the Wayback Machine Web Standards Project announcement, December 10, 2005
  9. ^ CSS Paged Media Module Level 3 Archived 2010-12-01 at the Wayback Machine, W3C
  10. ^ a b "doc-refs · Prince Documentation". www.princexml.com. Archived from the original on 2018-09-02. Retrieved 2018-08-29.

Further reading

[edit]
[edit]