File Content Extraction 26.2
HTML Export SDK C Programming Guide

# cnv2html

The `cnv2html` sample program creates a single, formatted HTML output file.

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

    cnv2html [options] inputfile outputfile

where:

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

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

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

Options for cnv2html

Option | Description
--- | ---
`-c KVCFG_SETHIFIPDF` | Enables the graphic-based PDF reader `kppdf2rdr` to convert PDF documents. However, to convert the pages of a PDF file into raster images, OpenText recommends using the `pdf2sr` reader instead, as described in Use the pdf2sr Reader. To see which platforms `kppdf2rdr` and `pdf2sr` are available on, see the platform differences section.
`-c KVCFG_SETTEXTROTATE` | This option specifies that rotated text should be displayed at the bottom of a page on which it appears. By default, rotated text in a file is displayed in its original position, at the original font size, and at 0 degrees rotation. The text is not rotated in the output because text rotation is not supported by HTML. See Convert Rotated Text for more information. Currently, this configuration option applies only to PDF files.
`-c KVCFG_DELSOFTHYPHEN` | This option specifies that soft hyphens in PDF files are deleted from the converted output. See Control Hyphenation.
`-c KVCFG_SETPDFINVISTEXT TOGGLE ButtonName` | KVCFG_SETPDFINVISTEXTTOGGLE enables a JavaScript button in exported PDF documents, which you can use to show and hide invisible text. See Toggle Invisible Text.
`-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.
`-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.
`-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-2026 Open Text
Version 26.2 | Last updated April 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.2

Topic Title: cnv2html