Table of Contents

Class PdfPageOptions

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

The options for PDF pages created during HTML to PDF conversions.

public class PdfPageOptions
Inheritance
PdfPageOptions
Inherited Members

Remarks

These options allow to configure the output PDF page size, margins, and scale. You can also specify header and footer templates. Read more in the Convert HTML to PDF in C# and VB.NET article.

Check out the other articles and code samples on the HTML to PDF features page.

Properties

FooterTemplate

Gets or sets the HTML template for page footer.

HeaderTemplate

Gets or sets the HTML template for page header.

Height

Gets the height of the page in points.

IsLandscape

Gets the value indicating whether the page orientation is landscape.

KeepBackground

Gets or sets the value indicating whether the conversion should keep the background color and/or graphics.

MarginBottom

Gets or sets the bottom margin of the page in points.

MarginLeft

Gets or sets the left margin of the page in points.

MarginRight

Gets or sets the right margin of the page in points.

MarginTop

Gets or sets the top margin of the page in points.

Scale

Gets or sets the scale of the page rendering.

Size

Gets the PdfPaperSize value specifying the size of the page.

TransparentBackground

Gets or sets the value indicating whether the default background should be transparent.

Width

Gets the width of the page in points.

Methods

SetSize(PdfPaperSize, bool)

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

SetSizeInches(double, double, bool)

Sets the size-related properties of the page using the provided width and height in inches.

SetSizePoints(int, int, bool)

Sets the size-related properties of the page using the provided width and height in points.