# Use the Export Demo Program

The easiest way to get started with Export is to become familiar with its capabilities through the Visual Basic sample program, Export Demo. Export Demo is for Windows only.

The source code for the program is in the directory `install\xmlexport\programs\ExportDemo`, where `install` is the path of the Export installation directory.

The output options that control the look of the output files are predefined in Export Demo and cannot be changed in the user interface. Export Demo uses a small sample of the options available in the Export API.

When you start the program, the following dialog appears:

NOTE: HTML conversion using HTML Export is available in Export Demo if you have HTML Export installed. If you do not have HTML Export installed, the HTML button is disabled.

## Change Input/Output Directories

If XML Export is installed in the default directory, the output and input directories are automatically set.

The default location for source files is the directory `install\testdocs`.

The default location for output files is the directory `install\xmlexport\programs\tempout`.

If XML Export is installed in a directory other than the default, you are prompted to select an output and input directory when you first start Export Demo.

To change the default directories for the source and output files

1. Select Options > Set Directories. The following dialog appears:

   Export Demo: Setting Directories

2. From the tree view, select the drive letter and directory for the source or output files.

3. In Change Location, select which files are stored in the directory, either Source or XML.

4. Click Change. The Current Locations fields are updated with the new selection.

5. Follow the same procedure for the other file types. When you are finished, click OK.

## Set Configuration Options

With XML Export, you can configure options prior to the document conversion by using the `XMLConfig()` function. Export Demo demonstrates this function, and allows you to:

- Generate output with verbose markup and without images.

- Include position information in the markup generated for a PDF document.

### Suppress Images

Export Demo provides an option to generate output with verbose markup and without images. For more information, see KVXMLConfig().

To specify that images are suppressed in the XML output, select Options > XML Config > Suppress Images.

### Use PDF Position Information

Export Demo provides an option to include position information in the markup generated for a PDF document. For more information, see KVXMLConfig().

To specify that PDF position information be included in the XML output, select Options > XML Config > Enable Position Token.

## Convert Files

To convert a single file

1. Select Options > Convert > Single file.

2. Select the document from the file list, and then click XML in the Convert file to pane.

To convert files in a directory

1. Select Options > Convert > Entire directory.

2. Click XML in the Convert directory to pane.

   To view a converted file, double-click the output file in the Output Files pane, or select the output file, and then click View. The converted file is displayed in the view pane:

   Export Demo: Converting Files

To view the original document, select the document from the file list, and then click Open. If you have an application on your system associated with the file, the file is displayed in that application.

To delete output files, select the file in the Output Files pane and click Delete.

_FT_HTML5_bannerTitle.htm