Click or drag to resize

PdfConverter Constructor

Overload List
  NameDescription
Public methodPdfConverter
Creates a HTML to PDF converter which will use the default width of 1024 pixels to layout the HTML document. The height of the HTML document will be automatically calculated based on the default width. Because the default width of 1024 pixels might not be enough to display entirely the HTML document or because the HTML content might be scaled down to fit the PDF document page width, the other constructors allow to specify a custom width in pixels for the HTML document.
Public methodPdfConverter(Int32)
Creates a HTML to PDF converter which will automatically calculate the height of the HTML document based on the specified width. The width in pixels of the HTML document is specified by the htmlDocWidthPx parameter. If this parameter is set to 0 or a negative value, the width of the HTML document will be automatically calculated. Because all the dimensions in the PDF document are measured in points (1 point is 1/72 inch), it might be necessary pixels to transform pixels to points and points to pixels using the UnitsConverter class in order to better control the HTML to PDF conversion.
Public methodPdfConverter(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.
Top
See Also