Class
DesktopHTMLViewerPrintSettings
Description
Settings that customize how DesktopHTMLViewer.PrintToPDF renders a PDF, including the paper size, page orientation and margins.
Page widths, heights and margins are expressed in inches.
Important
This class is supported on macOS, Linux and Windows when using WebView2. It is not supported on Windows when using CEF.
Properties
Name |
Type |
Read-Only |
Shared |
|---|---|---|---|
Enumerations
DesktopHTMLViewerPrintSettings.PaperSizes
PaperSizes
Enum
Description
Letter
US Letter paper size.
Legal
US Legal paper size.
A3
A3 paper size.
A4
A4 paper size.
A5
A5 paper size.
Custom
Custom paper size. The page size and margins come from the PageWidth, PageHeight and margin properties.
DesktopHTMLViewerPrintSettings.Landscape
Landscape As Boolean
DesktopHTMLViewerPrintSettings.MarginBottom
MarginBottom As Double
DesktopHTMLViewerPrintSettings.MarginLeft
MarginLeft As Double
DesktopHTMLViewerPrintSettings.MarginRight
MarginRight As Double
DesktopHTMLViewerPrintSettings.MarginTop
MarginTop As Double
DesktopHTMLViewerPrintSettings.PageHeight
PageHeight As Double
DesktopHTMLViewerPrintSettings.PageWidth
PageWidth As Double
DesktopHTMLViewerPrintSettings.PaperSize
PaperSize As PaperSizes
DesktopHTMLViewerPrintSettings.PrintHeadersAndFooters
PrintHeadersAndFooters As Boolean