Skip to main content

Installing Prince

Prince is available for Windows (x86/ARM), MacOS, Linux (multiple distributions) and FreeBSD. You can download the relevant file from our downloads page - you may need to choose the download based on your processor type (x86/ARM, 32/64 bits), as well as distribution type and version.

Prince is provided under the terms of the Prince End-User License Agreement.

Installing​

  1. Download your installation package from the Download Page.

  2. After downloading and attempting to run the installer you might see a confirmation screen like this. Click "run". Note that the filename for the installer may be different than the one shown in the picture.

    Run installer confirmation

    Confirmation dialog box asking if the user wishes to run the installer.

  3. The installer will display a welcome screen like the one below. Click next.

    Installer welcome screen

    The installer welcome screen

  4. Next you will need to accept the license agreement. The text of the license agreement is also available here. Accept the agreement and click Next.

    Installer license agreement screen

    The installer license agreement screen

  5. Choose the installation directory for Prince. The default is recommended unless you have a specific reason to install Prince elsewhere. When using Prince from the command line we will use the executable in the Engine\bin\ subdirectory. The installation requires only 16MB of disk space.

    Installation location screen

    The installer's installation location screen

  6. The installation will confirm the installation details with you before performing the installation. Click Next to continue.

  7. After the installation has completed you have the option to launch the Prince graphical user interface (GUI). The Prince graphical user interface is only available for Microsoft Windows. Your First Document provides more information about how to use both the GUI and the command line interfaces. Click Finish to close the installer.

    Installation complete

    The installer's completion screen

For the layout of a Prince installation on Windows, see the Windows installation layout section.

Running Prince​

Once Prince is intalled, it can be run as a command-line application.

$ prince file.html

Several options allow to fine-tune input and output.

Additionally, on Windows Prince can be run as a GUI application by double-clicking on the Prince icon created during installation.

Prince is now ready to use - Your First Document will walk you through generating your first PDF document.

For information about using Prince from PHP, Java, .NET, and other server frameworks you will need to install one or more Prince wrappers. See Server Integration for installation and usage information.

Installing a license file​

If you've purchased Prince you can install your license file (which you will receive via e-mail) to remove the watermark on generated documents. This section will explain how to install the license file. If instead you're using the free version of Prince then you don't need to install a license file.

On Windows you can install a license by following these steps:

  1. Open the license window by clicking the License icon in the main window.

    Click the license button

    Image showing the license button in the main Prince GUI.

  2. Click the open button and choose your license file.

    License window

    Image showing the license window with the open button.

  3. The license should be displayed in the lower part of the window, click the accept button to install it then click Ok.

    License window with license

    Image showing the license window with a license selected but not yet installed.

Installation Layout​

This section details where Prince installs its files in the various supported operating systems.

Prince installs its files to %ProgramFiles% on 32-bit Windows, and to %ProgramFiles(x86)% on 64-bit Windows.

  • prince-gui.exe is the Prince GUI
  • the subdirectory engine contains all resource files

On 64-bit Windows, the Prince GUI is a 32-bit program, but the formatting engine is 64-bit.

In the subfolder engine are all resource files:

FolderFunction
binThe Prince core (prince.exe)
contribLicenses for open source libraries used by Prince
dictLibThai dictionary, used by Prince to handle word breaking in the Thai language
dtdDocument Type Definitions (DTDs) for XML languages understood by Prince
etcCA certificate bundle, used for HTTPS; MIME type mapping file, used for PDF attachments; and a machine-readable SBOM file in CycloneDX format
hyphThe hyphenation dictionaries for common languages
iccICC color profiles
libShared libraries required by Prince
licenseThe Prince license file
mathMathML resource files
styleThe default CSS style sheets

The file etc/prince.cdx.json is a machine-readable SBOM file.