HtmlLayout

Sets the custom layout settings that the HtmlToImage action uses for converting HTML pages to TIFF format.

Member of namespace

Convert

Syntax

bool HtmlLayout(string sMargins, int tableFit, bool tableBorders, bool cellShading, bool
      clearBackground)

Parameters

sMargins
A comma-delimited list of the left, top, right, and bottom margin sizes. Each item on the list is a positive integer that represents the margin size in inches multiplied by 10. For example, if the passed parameter value is “6,6,6,6”, all margin sizes are 0.6 inches. The default margin size is 0.5 inches.
tableFit
The conversion method to use for HTML tables. The method is specified by one of the following values:
0 Auto fit: Shrinks cells according to their contents.
1 Available space: Expands cells to the available page width.
2 Fixed width: Sizes cells according to their width properties.

The default method is auto fit.

tableBorders
Whether to render table borders. The following values are possible:
True Table borders are rendered.
Important: Rendering borders might cause issues later during CCO normalization, such as misbehavior during text location, click and key, and other operations. For more information about CCO normalization, see NormalizeCCO.
False Table borders are not rendered.
The default value is False.
cellShading
Whether to render table cell shading. The following values are possible:
True Table cells are rendered with shading.
Important: Shading can have the following adverse effects:
  • Speckling. Speckling can interfere with character recognition, fingerprint matching, and other operations.
  • Unreadable text. Unreadable text can occur for bitonal table cells that have background noise.
False Table cells are not rendered with shading.

For color output, the default value is True. For all other output, the default value is False.

clearBackground
Whether to clear the background of the HTML page. The following values are possible:
True The background is cleared. Doing so might improve the clarity of color output.
False The background is not cleared.

The default value is False.

Returns

Always True.

Level

Page level.

Details

Example:

HtmlLayout(“25,25,25,25”, 1, False, True, True)
HtmlToImage()