This program converts an input document to an output document and enables you to specify options in the command line. This program demonstrates most of the methods available in the Java API. The command-line options are listed in Options for the XMLTest Sample Program.
To run XmlTest
Add the location of the javaapi\KeyView.jar
file, and the Export bin
directory to the CLASSPATH
environment variable.
Type the following:
java -Djava.library.path=bin_directory XmlTest [options] bin_directoryinifile inputfileoutputfile
where:
bin_directory
is the path to the Export bin
directory.options
is one or more of the options listed in Options for the XMLTest Sample Program.inifile
is the full path and file name of a template file. See Set Conversion Options by Using the Template Files.inputfile
is the path and file name of the source file.outputfile
is the path and file name of the generated file. If a path is not specified, the file is output to the current directory.Option | Description |
---|---|
|
This option sets the input as a stream. The default is file. |
|
This option sets the output as a stream. The default is file. |
|
This option runs Export as a separate process. See Convert Files Out of Process. |
|
This option keeps a Servant process active after the Export out-of-process session is terminated. If the Servant remains active, subsequent conversion requests are processed more quickly because the Servant is already prepared to receive data. |
|
This option converts an XML file using customized extraction settings defined in the |
|
This option specifies a temporary directory in which temporary files generated by the conversion process are stored. On Windows systems, there is a 64 K size limit to the temp directory. After the limit is reached, you must either create a new directory or delete the contents of the existing directory; otherwise, you might receive an error message. |
|
This option reads style sheet information from an existing style sheet file, or writes the information to an external CSS file. |
|
This option extracts the file format information and writes it to a file.
|
|
This option extracts the metadata and writes it to a file.
|
|
This option displays a list of the files that are automatically generated during the conversion.
|
|
This option specifies that XML output includes verbose markup, but no images. If you do not set this option, embedded images in a document are regenerated as separate files and in the output directory. |
|
This option specifies that a position element is included in the markup for PDF documents. The position element defines the absolute position of the text relative to the bottom left corner of the page, and includes additional information such as font and color. |
- |
This option disables the conversion of Microsoft Word bookmarks to zone elements ( |
- |
If you set this option, bookmarks in a PDF file are not converted to simple XLinks in the XML output. By default, PDF bookmarks are converted to source and destination anchors. |
|
This option specifies that PDF files are output in a logical reading order. The parameter
|
|
If you set this option, text and graphics that were deleted from a document with a revision tracking feature enabled are converted, and revision tracking information is included in the XML output. See Convert Revision Tracking Information. |
|
This option specifies that soft hyphens in PDF files are deleted from the converted output. See Control Hyphenation. |
|