HtmlToImage

Converts a page with *.htm or *.html file to a page or pages in TIFF format.

Member of namespace

Convert

Syntax

bool HtmlToImage ()

Parameters

None.

Returns

True if the file is successfully converted to a TIFF document.

False if the current page is not an Html Document or if there is a failure in the conversion.

If the number of input files/pages exceeds the maximum allowed or if there is a failure in the conversion, the batch will be set to abort.

Level

Page level.

Details

If the current page is an Html Document, the file is converted to multiple TIFF files, one TIFF file for each page within the Document, based on the settings of the other Html actions that configure the conversion settings.

Each new TIFF also has a new page created within the application environment which can be processed by subsequent rules. The original file name from which the page was extracted is stored in the ParentImage variable, for possible future reference within your application.

If the configured output image format and compression only supports black and white, such as CCITT4, colored text is exported as black. Html table borders will not be rendered onto output images.

Example:
HtmlPrintQuality(200)
HtmlTiffCompression(CCITT4)
HtmlToImage()