FOP(1)
β¨ FOP(1) β¨
okay bestie, come SIT β this is the manual page for fop, a User Command π
πΈ NAME πΈ
fop β a command line wrapper for the java version of fop. that's it, that's the whole name section, we move π«Ά
π¦ DESCRIPTION π¦
Okay so. Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL formatting objects (XSL-FO) and an output independent formatter. Iconic behaviour honestly.
It's a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. the way it just... reads and renders π
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 β
π SYNOPSIS π
fop [options] [-fo|-xml] infile [-xsl file]
[-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print]
<outfile>
π OPTIONS π
-versionβ prints the FOP version and then dips out, exit stage left π¨-xβ dumps the configuration settings, like a little config receipts moment-c cfg.xmlβ use an additional configuration file, and it's calledcfg.xml-l langβ the language to use for user information π-nocsβ disables complex script features-rβ relaxed / less strict validation (where available)-dpi xxxβ target resolution in dots per inch (dpi), wherexxxis a number π-sβ for area tree XML, goes down to block areas only-vβ run in verbose mode (currently it's simply printing the FOP version and then continuing, that's the whole vibe)-o [password]β the PDF file will be encrypted with the option owner password π-u [password]β the PDF file will be encrypted with the option user password π-noprintβ the PDF file will be encrypted without printing permission-nocopyβ the PDF file will be encrypted without copy content permission-noeditβ the PDF file will be encrypted without edit content permission-noannotationsβ the PDF file will be encrypted without edit annotation permission-nofillinformsβ the PDF file will be encrypted without fill in interactive form fields permission-noaccesscontentβ the PDF file will be encrypted without extract text and graphics permission-noassembledocβ the PDF file will be encrypted without assemble the document permission-noprinthqβ the PDF file will be encrypted without print high quality permission-aβ enables accessibility features (Tagged PDF etc., default off) π«Ά-pdfprofile profβ the PDF file will be generated with the specified profile (examples for prof:PDF/A-1borPDF/X-3:2003)-conserveβ enable memory-conservation policy (trades memory-consumption for disk I/O). Note: currently it only influences whether the area tree is serialized.-cacheβ specifies a file/directory path location for the font cache file-flushβ flushes the current font cache file
π INPUT π
infileβ xsl:fo input file (the same as the next one). use-for infile to pipe input from stdin π«Ά-foinfile β xsl:fo input file-xmlinfile β xml input file, and it must be used together with-xsl-atininfile β area tree input file-ifininfile β intermediate format input file-imageininfile β image input file (piping through stdin is not supported π)-xslstylesheet β xslt stylesheet-paramname value β the<value>to use for parameter<name>in the xslt stylesheet (repeat-param name valuefor each parameter, yes, once per param, no shortcuts)-catalogβ use catalog resolver for input XML and XSLT files
π§ OUTPUT π§
outfileβ input will be rendered as PDF into outfile (use-for outfile to pipe output to stdout)-pdfoutfile β input will be rendered as PDF (outfile req'd)-pdfa1boutfile β input will be rendered as PDF/A-1b compliant PDF (outfile req'd, same as-pdf outfile -pdfprofile PDF/A-1b)-awtβ input will be displayed on screen β¨-rtfoutfile β input will be rendered as RTF (outfile req'd)-pcloutfile β input will be rendered as PCL (outfile req'd)-psoutfile β input will be rendered as PostScript (outfile req'd)-afpoutfile β input will be rendered as AFP (outfile req'd)-tiffoutfile β input will be rendered as TIFF (outfile req'd)-pngoutfile β input will be rendered as PNG (outfile req'd)-txtoutfile β input will be rendered as plain text (outfile req'd)-at [mime] outβ representation of area tree as XML (outfile req'd). specify the optional mime output to allow the AT to be converted to the final format later π-if [mime] outβ representation of the document in intermediate format XML (outfile req'd). specify the optional mime output to allow the IF to be converted to the final format later-printβ input file will be rendered and sent to the printer π¨οΈ. see options with-print help-outmime outfile β input will be rendered using the given MIME type (outfile req'd). Example:-out application/pdf D:\out.pdf(Tip:-out listprints the list of supported MIME types and exits)-svgoutfile β input will be rendered as an SVG slides file (outfile req'd). Experimental feature β requires the additionalfop-sandbox.jar.-fooutoutfile β input will only be XSL transformed. The intermediate XSL-FO file is saved and no rendering is performed. (Only available if you use the-xmland-xslparameters)
π EXAMPLES π
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
π HYPHENATION π
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 π
π CONFIGURATION FILES π
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 β¨
π«Ά JAVA-WRAPPERS NOTE π«Ά
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.
πΈ AUTHOR πΈ
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).
β SEE ALSO β
fop-ttfreader(1), java-wrappers(7).
and that's the whole page bestie!! this was fop Version 2.5, from July 2020 β go forth and render, ily ππ
π¦ where this page comes from
- debian bookworm: fop 1:2.8-2 Β· Apache-2.0
- debian trixie: fop 1:2.10+dfsg-2 Β· Apache-2.0
- ubuntu jammy: fop 1:2.6-2 Β· Apache-2.0
- ubuntu noble: fop 1:2.8-3 Β· Apache-2.0
- ubuntu resolute: fop 1:2.10+dfsg-2 Β· Apache-2.0
- ubuntu stonking: fop 1:2.10+dfsg-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms