Table of Contents

Method SetSize

Namespace
BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly
BitMiracle.Docotic.Pdf.HtmlToPdf.dll

SetSize(PdfPaperSize, bool)

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

public void SetSize(PdfPaperSize size, bool isLandscape = false)

Parameters

size PdfPaperSize

The size value to use.

isLandscape bool

The value indicating whether the page orientation should be landscape.

Remarks

The size must not be Custom.

Read the Convert HTML to PDF in C# and VB.NET article for examples of using this method.