DOKK / manpages / debian 11 / fop / fop.1.en
FOP(1) User Commands FOP(1)

fop - Command line wrapper for the java version of fop.

Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL formatting objects (XSL-FO) and an output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PS, PCL, AFP, XML (area tree representation), Print, AWT and PNG, and to a lesser extent, RTF and TXT. The primary output target is PDF.

fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>

print FOP version and exit
dump configuration settings
use additional configuration file cfg.xml
the language to use for user information
disable complex script features
relaxed/less strict validation (where available)
target resolution in dots per inch (dpi) where xxx is a number
for area tree XML, down to block areas only
run in verbose mode (currently simply print FOP version and continue)
PDF file will be encrypted with option owner password
PDF file will be encrypted with option user password
PDF file will be encrypted without printing permission
PDF file will be encrypted without copy content permission
PDF file will be encrypted without edit content permission
PDF file will be encrypted without edit annotation permission
PDF file will be encrypted without fill in interactive form fields permission
PDF file will be encrypted without extract text and graphics permission
PDF file will be encrypted without assemble the document permission
PDF file will be encrypted without print high quality permission
enables accessibility features (Tagged PDF etc., default off)
PDF file will be generated with the specified profile (Examples for prof: PDF/A-1b or PDF/X-3:2003)
enable memory-conservation policy (trades memory-consumption for disk I/O) (Note: currently only influences whether the area tree is serialized.)
specifies a file/directory path location for the font cache file
flushes the current font cache file

xsl:fo input file (the same as the next) (use '-' for infile to pipe input from stdin)
infile xsl:fo input file
xml input file, must be used together with -xsl
area tree input file
intermediate format input file
image input file (piping through stdin not supported)
xslt stylesheet
(repeat '-param name value' for each parameter)
use catalog resolver for input XML and XSLT files

input will be rendered as PDF into outfile (use '-' for outfile to pipe output to stdout)
input will be rendered as PDF (outfile req'd)
input will be rendered as PDF/A-1b compliant PDF (outfile req'd, same as "-pdf outfile -pdfprofile PDF/A-1b")
input will be displayed on screen
input will be rendered as RTF (outfile req'd)
input will be rendered as PCL (outfile req'd)
input will be rendered as PostScript (outfile req'd)
input will be rendered as AFP (outfile req'd)
input will be rendered as TIFF (outfile req'd)
input will be rendered as PNG (outfile req'd)
input will be rendered as plain text (outfile req'd)
representation of area tree as XML (outfile req'd) specify optional mime output to allow the AT to be converted to final format later
representation of document in intermediate format XML (outfile req'd) specify optional mime output to allow the IF to be converted to final format later
input file will be rendered and sent to the printer see options with "-print help"
(outfile req'd) Example: "-out application/pdf D:\out.pdf" (Tip: "-out list" prints the list of supported MIME types and exits)
input will be rendered as an SVG slides file (outfile req'd) Experimental feature - requires additional fop-sandbox.jar.
input will only be XSL transformed. The intermediate XSL-FO file is saved and no rendering is performed. (Only available if you use -xml and -xsl parameters)

fop foo.fo foo.pdf

fop -fo foo.fo -pdf foo.pdf (does the same as the previous line)

fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf

fop -xml foo.xml -xsl foo.xsl -foout foo.fo

fop -xml - -xsl foo.xsl -pdf -

fop foo.fo -mif foo.mif

fop foo.fo -rtf foo.rtf

fop foo.fo -print

fop foo.fo -awt

fop can make use of external hyphenation rules that can be supplied in the form of a hyphenation jar. You can find such a one at http://offo.sourceforge.net/.

To actually use that, set the FOP_HYPHENATION_PATH environment variable to the full path of this file, or use configuration files, see below.

fop reads two configuration files on startup: /etc/fop.conf and $HOME/.foprc. These are plain shell script files where you can define for instance the FOP_HYPHENATION_PATH variable.

Another way to extend is conf.d/ files. Simply add a configuration file into /etc/fop.conf.d/my.conf.

This program is a shell script wrapper based on java-wrappers(7). You therefore benefit from several features; please see the java-wrappers(7) manual page for more information about them.

Wrapper author: Ola Lundqvist <opal@debian.org>

This manual page was written by Mathieu Malaterre <malat@debian.org>, for the Debian project (and may be used by others).

fop-ttfreader(1), java-wrappers(7).

July 2020 fop Version 2.5