Chapter 11. upCast Simplified Commandline Interface

1. Reference
2. Example

Important

Using the Simplified Commandline Interface to upCast requires a license that includes the API feature.

The upCast simplified commandline interface essentially is the upCast API method convertDocumentWithConfiguration() wrapped by a commandline interpreting class and it is delivered as part of the upcast.jar. This is also the reason why a license including the API feature is required to use the commandline interface.

1. Reference

To perform conversions using the upCast simplified commandline interface, start upCast as follows:

java -cp upcast.jar de.infinityloop.upcast.UpcastCmdlineWithConfig licensefile outdir configfile [ srcfile ]+    

The parameters are:

licensefile

Specifies license file to use (absolute, local file system path). This license must include the API feature.

outdir

Specifies the output directory where resulting file(s) should be written to.

configfile

Specifies the absolute path to the configuration file (Section 3, “Working with Configurations”) to use for the conversion.

srcfile

One (or more) source file(s) to process.

2. Example

java -cp upcast.jar de.infinity.upcast.UpcastCommandlineWithConfig \
"C:\license" \
"C:\output" \
"C:\c1.config" \
"C:\a.rtf"

This calls the simplified commandline interface and converts the document C:\a.rtf to C:\output\, using the configuration c1.config.