PdfConverter Constructor (Int32, Int32) |
Creates a HTML to PDF converter using the specified width and height in pixels for the HTML document.
The width in pixels of the HTML document is specified by the htmlDocWidthPx parameter. If this
parameter is set to 0 or a to negative value, the width of the HTML document will be automatically calculated.
The height in pixels of the HTML document is specified by the htmlDocHeightPx parameter. The HTML document
will be truncated if its height exceeds the htmlDocHeightPx value. If this parameter is set to 0 or a negative value,
the whole HTML document will be converted to PDF.
Because all the dimensions in the PDF document are measured in points (1 point is 1/72 inch),
it might be necessary to transform pixels to points and points to pixels using the
UnitsConverter class in order to better control the HTML to PDF conversion.
Namespace:
ExpertPdf.HtmlToPdf
Assembly:
ephtmltopdf (in ephtmltopdf.dll) Version: 17.0.0
Syntax public PdfConverter(
int htmlDocWidthPx,
int htmlDocHeightPx
)
Public Sub New (
htmlDocWidthPx As Integer,
htmlDocHeightPx As Integer
)
Parameters
- htmlDocWidthPx
- Type: SystemInt32
- htmlDocHeightPx
- Type: SystemInt32
See Also