This class can render HTML document into a specified area of a DC. You can use it
in your own printing code, although use of HtmlEasyPrinting
or HtmlPrintout is strongly recommended.
Assign DC instance to the renderer.
pixel_scale can be used when rendering to high-resolution DCs (e.g. printer) to adjust size of pixel metrics.
(Many dimensions in HTML are given in pixels — e.g. image sizes. 300×300 image would be only one
inch wide on typical printer. With pixel_scale = 3.0 it would be 3 inches.)
Sets fonts. See HtmlWindow#set_fonts for
detailed description.
See also set_size.
Set size of output rectangle, in pixels. Note that you can’t change
width of the rectangle between calls to Render!
(You can freely change height.)
Assign text to the renderer. Render then draws
the text onto DC.
Renders HTML text to the DC.
Returned value is y coordinate of first cell than didn’t fit onto page.
Use this value as from in next call to Render in order to print multipages
document.
The Following three methods must always be called before any call to Render (preferably
in this order):
Render() changes the DC’s user scale and does NOT restore it.
Returns the height of the HTML text. This is important if area height (see set_size)
is smaller that total height and thus the page cannot fit into it. In that case you’re supposed to
call Render as long as its return value is smaller than GetTotalHeight’s.
[This page automatically generated from the Textile source at 2023-06-03 08:07:32 +0000]