PdfDocumentControlPageSize Property

This property controls the page size of the PDF document generated by the HTML to PDF converter. When AutoResizePdfPageWidth is true (the default value), the converter automatically resizes the PDF page width to match the BrowserWidth value at the default 96 DPI resolution. When AutoResizePdfPageHeight is true (the default value is false), the converter automatically resizes the PDF page height to match the HTML content height at the default 96 DPI resolution. To obtain a PDF with the exact page size given by PageSize, set the AutoResizePdfPageWidth and AutoResizePdfPageHeight properties to false. The default size of the PDF document page is A4.

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.0.0
C#
public PdfPageSize PageSize { get; set; }

Property Value

PdfPageSize

See Also