Prince supports optional PDF profiles, which can be selected
using the --pdf-profile
option on the
command-line interface,
or the setProfile
method if using a server
wrapper, or the PDF.profile
property in JavaScript.
The available profiles are:
Generally speaking, PDF/A profiles were created with the goal of long-term preservation of the documents (PDF for Archiving), while PDF/X profiles were created to address publisher's needs in the graphic arts industry (PDF for eXchange).
Choosing one profile over another can help producing a PDF file which has the right properties for its intended destination. Each PDF profile places restrictions on the features allowed in a PDF file in order to achieve its aims. Please also see the Color Management section for the impact the PDF profiles have on color management. Prince produces error messages when the restrictions are not respected.
$ prince foo.html
--encrypt --no-embed-fonts --pdf-profile="PDF/A-1b"
prince: error: PDF/A-1b does not support encryption
prince: error: PDF/A-1b requires fonts to be embedded
--pdf-output-intent
command line option in the
PDF Output Options section)