PdfPageOptions.SetSize Method

Sets the size-related properties of the page using the provided PdfPaperSize value.

Namespace:  BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly:  BitMiracle.Docotic.Pdf.HtmlToPdf (in BitMiracle.Docotic.Pdf.HtmlToPdf.dll)

Syntax

C#
public void SetSize(
	PdfPaperSize size,
	bool isLandscape = false
)
VB
Public Sub SetSize ( 
	size As PdfPaperSize,
	Optional isLandscape As Boolean = false
)

Parameters

size
Type: BitMiracle.Docotic.Pdf.PdfPaperSize
The size value to use.
isLandscape (Optional)
Type: System.Boolean
The value indicating whether the page orientation should be landscape.

Remarks

The size must not be Custom.

See Also