# cnv2htmloop

The `cnv2htmloop` sample program creates a single, formatted HTML output file, but unlike `cnv2html`, it converts the file out of process. See Convert Files Out of Process for more information on out of process conversions.

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

    cnv2htmloop [options] inputfile outputfile

where:

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

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

The following options are available.

Options for cnv2htmloop

Option | Description
--- | ---
`-f` | Convert by using out-of-process file mode (default)
`-s` | Convert by using out-of-process stream mode
`-c KVCFG_SETHIFIPDF` | This option specifies the type of reader used to convert PDF documents. In Export, you can convert PDF documents by using either the graphic-based PDF reader, named `kppdfrdr`, or the basic PDF reader, named `pdfsr`. For more information on each reader, see Convert PDF Files to Raster Images. By default, the basic reader (`pdfsr`) is used to convert PDF documents.
`-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.
`-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