setfopath Expand/Collapse All Print this Topic Previous Page Up One Level Next page

Home >  StyleVision Server Command Line >


The setfopath command (short form is sfp) specifies the path to an Apache FOP processor other than that included in the StyleVision Server package.


By default the Apache FOP processor that is included with StyleVision Server is used for processing FO documents and generating PDF output. If you wish to use some other Apache FOP processor instance than the processor supplied with StyleVision Server, use the setfopath command.


After an FO processor has been specified with the setfopath command, it is this processor that will be used when PDF is generated with subsequent generate commands. To change processors again, use the setfopath command again. To switch back to StyleVision Server's FOP processor, locate the FOP folder on your system and use this path as the argument of setfopath.


On Windows systems, the FOP folder will be located under ProgramData\Altova\SharedBetweenVersions; on Linux and macOS systems in a descendant folder of the StyleVisionServer2019 folder.




stylevisionserver setfopath | sfp [options] Path


Click to expand/collapseCasing and slashes on the command line

StyleVisionServer on Windows

stylevisionserver on Unix (Linux, Mac)


* Note that lowercase (stylevisionserver) works on all platforms (Windows, Linux, and Mac), while upper-lower (StyleVisionServer) works only on Windows and Mac.

* Use forward slashes on Linux and Mac, backslashes on Windows.






Path to the Apache FO processor to use in subsequent FO generation





--h, --help

Displays information about the command


Options are listed in their short forms (if available) and long forms. You can use one or two dashes for both short and long forms. An option that takes a value is written like this: --option=value.


Note:On Windows systems: Avoid using the end backslash and closing quote on the command line \", for example, as in: "C:\My directory\". These two characters are interpreted by the command line parser as a literal double-quotation mark. Use the double backslash \\ if spaces occur in the command line and you need the quotes (for example: "C:\My Directory\\"). Alternatively, try to avoid using spaces and, therefore, quotes at all.



After running the setfopath command, you can use the generate command to generate a PDF output-file using the just-specified FO processor:


stylevisionserver setfopath C:\FOP\FOP.bat

stylevisionserver generate --inputxml=Test.xml --pdf=Test.pdf Test.pxf


The commands above do the following:


1.The setfopath command specifies that the FO processor at the location C:\FOP\FOP.bat is to be used to generate PDF in subsequent PDF-generation commands.
2.The generate command generates a PDF file from the specified input XML, using transformation files contained in the PXF file. The FO processor specified in the previous command is used for generating the PDF.




© 2019 Altova GmbH