cnv2html

The cnv2html sample program creates a single, formatted HTML output file. It is called by the Export Demo sample program, but can also be used on its own.

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.

The following options are available.

Options for cnvhtml

Option

Description

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

-c KVCFG_SETPDFINVISTEXT
TOGGLE ButtonName

y.

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