File Content Extraction 26.1
XML Export SDK C Programming Guide

# cnv2xml

The `cnv2xml` sample program creates a single, formatted XML output file. 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.

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 1997-2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.1

Topic Title: cnv2xml