PdfConverterPageWidth Property |
Gets or sets the width of the HTML document in pixels. The default width is 1024 pixels
and this value can be changed by setting this property or by specifying the htmlDocWidthPx
parameter in the constructor.
If this property is set to 0 or a to 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 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 int PageWidth { get; set; }
Public Property PageWidth As Integer
Get
Set
Property Value
Type:
Int32See Also