# 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 cnvhtml.

`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 cnvhtml

Option | Description
--- | ---
`-c KVCFG_SETHIFIPDF` | Enables the graphic-based PDF readers `kppdfrdr` and `kppdf2rdr` to convert PDF documents. However, to convert the pages of a PDF file into raster images, Micro Focus recommends using the `pdf2sr` reader instead, as described in Use the pdf2sr Reader. When you set this option, KeyView uses the reader you specify in the `[HiFi]` section of `formats_e.ini`, for example: `[HiFi] 200=kppdfrdr`
`-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.

_FT_HTML5_bannerTitle.htm