# cnv2xml

The `cnv2xml` sample program creates a single, formatted XML output file. It is called by the Export Demo sample program, but can also be used on its own. This program runs on both Windows and UNIX platforms.

To run `cnv2xml`, type the following at the command line:

    cnv2xml [options] inputfile outputfile

where:

`options` is one or more of the options listed in Options for cnv2xml.

`inputfile` is the full path and file name of the source document.

`outputfile` is the full path and file name of the first XML output file.

The following options are available.

Options for cnv2xml

Option | Description
--- | ---
`-c KVCFG_SUPPRESSIMAGES` | This option specifies that XML output includes verbose markup, but no images. If this option is not set, embedded images in a document are regenerated as separate files and stored in the output directory. KVXMLConfig().
`-c KVCFG_ENABLEPOSITIONINFO` | 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. KVXMLConfig().
`-c KVCFG_DELSOFTHYPHEN` | This option specifies that soft hyphens in PDF files are deleted from the converted output. See Control Hyphenation.
`-pdfltr` | This option specifies that PDF files are output in a logical reading order, and the paragraph direction is left to right. See Convert PDF Files to a Logical Reading Order.
`-pdfrtl` | This option specifies that PDF files are output in a logical reading order, and the paragraph direction is right to left. See Convert PDF Files to a Logical Reading Order.
`-pdfauto` | This option specifies that PDF files are output in a logical reading order. The PDF reader determines the paragraph direction (left-to-right or right-to-left) for each PDF page, and then sets the direction accordingly. See Convert PDF Files to a Logical Reading Order.
`-pdfraw` | This option specifies that PDF files are output in an unstructured paragraph flow. This is the default. Set this flag if logical reading order is enabled, and you want to return to an unstructured paragraph flow. See Convert PDF Files to a Logical Reading Order.

© Copyright 2006-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm