Using the Command Line (Java)
A sample application has been provided to illustrate the use of the Document Composer (for Java), from the command line.
<path-to-mathflow-sdk>/java/samples/document_composer_cmd.bat (Windows)
<path-to-mathflow-sdk>/java/samples/document_composer_cmd.sh (non-Windows)
About the Script
The Document Composer batch file (or shell script) calls DocumentComposer with several options. It contains the following command (formatted for clarity):
java -classpath .;../MathFlow.jar
com/dessci/mathflow/sdk/composer/DocumentComposer
-license dessci.lic
-inputdoc input.html
-outputdoc output.xhtml
IMPORTANT NOTES:
- This required .jar files needs to be on the
classpath:MathFlow.jar (all MathFlow SDK classes)
- Within the MathFlow jar file, the
DocumentComposer program is located at com/dessci/mathflow/sdk/composer/DocumentComposer. - Your license,
dessci.lic, is a FlexNet license file that is located in the same directory as the Document Composer batch file (or shell script). This option is always required. - The
inputdoc file to be processed is named input.html, and is located in the same directory as the batch file or shell script. This option is always required. - The name of the outputdoc file will be
output.xhtml, and is located in the same directory as the batch file or shell script. - The image generated by the MathML in the
inputdoc file, input1.gif, will be written to the default input_images directory. If this file already exists, it will be overwritten.
For a complete list of the command line options, see Command Line Parameters.
|