Prince may be called from the command-line with the following arguments:
prince OPTIONS
FILE
-o
PDF
Please note that on Windows, Prince can be called from the command-line by
running the prince.exe
file found in the
Prince\Engine\bin
folder of the Prince installation.
prince file.xml
file.xml
to
file.pdf
.
prince doc.html
-o out.pdf
doc.html
to
out.pdf
.
prince
-s style1.css
-s style2.css
input.xml
-o output.pdf
input.xml
to
output.pdf
,
applying two user style sheets.
prince
doc1.html
doc2.html
-o out.pdf
doc1.html
and
doc2.html
into a single PDF file,
out.pdf
.
The command line must contain the name of the input file to process. An input filename consisting of a single hyphen "-" will cause Prince to read from the standard input stream.
The output file name can be specified on the command line using the
-o
command line option.
An output filename consisting of a single
hyphen "-" will cause Prince to write to the standard output stream.
If the output file name is omitted, the output will be placed in a file with the same name as the input, but with a PDF file extension.
The command line may include the options described below:
-h
, --help
--version
--credits
-v
, --verbose
--debug
--log=FILE
-i FORMAT
,
--input=FORMAT
auto
| xml
|
html
| html5
].
-l
,
--input-list=FILE
--baseurl=URL
--remap=URL=DIR
URL
get them from the local directory
DIR
.
This option can be used multiple times to specify more than one remapping.
It cannot be used with --fileroot
--fileroot=DIR
--no-xinclude
--no-network
--auth-user=USER
--auth-password=PASS
--auth-server=HOST
[:PORT
]
--auth-scheme=SCHEME
http
or https
--auth-method=METHOD
basic
, digest
, ntlm
and
negotiate
.
The default is basic
.
--auth=URL
SCHEME:
]//USER:PASS@HOST
[:PORT
].
Unlike the preceding
options, --auth
may be used multiple times.
The username and password must be percent-encoded.
--no-auth-preemptive
--http-proxy=PROXY
--http-timeout=SEC
--cookiejar=FILE
--ssl-cacert=FILE
--ssl-capath=PATH
--insecure
--no-parallel-downloads
--javascript
--script=FILE
-s FILE
,
--style=FILE
--media=MEDIA
--page-size=SIZE
--page-margin=MARGIN
--no-author-style
--no-default-style
-o FILE.PDF
,
--output=FILE.PDF
--pdf-profile=PROFILE
--pdf-output-intent=ICC
--attach=FILE
--no-artificial-fonts
--no-embed-fonts
--no-subset-fonts
--no-compress
--pdf-title=TITLE
--pdf-subject=SUBJECT
--pdf-author=AUTHOR
--pdf-keywords=KEYWORDS
--pdf-creator=CREATOR
--encrypt
--key-bits=NUM
--user-password=PASS
--owner-password=PASS
--disallow-print
--disallow-copy
--disallow-annotate
--disallow-modify
--scanfonts FILES...