Previous Topic

Next Topic

Book Contents

Book Index

Using the Command Line (Windows)

To illustrate the use of the Document Composer, there is a file located in the samples directory that demonstrates how to call it from command line:

<path-to-mathflow-sdk>/windows/samples/document_composer_cmd32.bat (for 32-bit systems)
<path-to-mathflow-sdk>/windows/samples/document_composer_cmd64.bat (for 64-bit systems)

About the Script

The document_composer_cmd32.bat (or document_composer_cmd64.bat) file calls the DocumentComposer with several options. It contains the following command (formatted for clarity):

"../bin/DocumentComposer32[or 64]"
-license "dessci.lic"
-inputdoc "input.html"
-outputdoc "output.html"
-imagefolder "images"
-saveoptions "opts.xml"

The DocumnentComposer program is located in bin/DocumentComposer.

The license is a FlexNet license file named dessci.lic, located in the same directory as the document_composer_cmd32[or 64].bat file. This option is always required.

The inputdoc file to be processed is named input.html, also located in the same directory as the .bat file. This option is always required.

The name of the outputdoc file will be output.html, also located in the same directory as the .bat file.

Images generated by the MathML in the inputdoc file will be written to the images subdirectory.

Finally, the options used to process this document will be saved to a file named opts.xml.

For a complete list of the command line options, see Command Line Parameters.

Previous Topic

Next Topic

Book Contents

Book Index


[Design Science Home]
Copyright © 1996-2016 Design Science, Inc. All rights reserved.