ExpertPdf Html to Pdf Converter Library
PdfConverter Constructor (htmlDocWidthPx, htmlDocHeightPx)
NamespacesExpertPdf.HtmlToPdfPdfConverterPdfConverter(Int32, Int32)
ExpertPdf Html to Pdf Converter Library
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.
Declaration Syntax
C#Visual BasicVisual C++
public PdfConverter(
	int htmlDocWidthPx,
	int htmlDocHeightPx
)
Public Sub New ( 
	htmlDocWidthPx As Integer,
	htmlDocHeightPx As Integer
)
public:
PdfConverter(
	int htmlDocWidthPx, 
	int htmlDocHeightPx
)
Parameters
htmlDocWidthPx (Int32)
htmlDocHeightPx (Int32)

Assembly: ExpertPdf.HtmlToPdf (Module: ExpertPdf.HtmlToPdf.dll) Version: 9.2.0.25824 (9.2.0.0)