Class PageSetup

Class PageSetup

Namespace: Aspose.Html.Rendering
Assembly: Aspose.HTML.dll (25.2.0)

Represents a page setup object is used for configuration output page-set.

[ComVisible(true)]
public class PageSetup

Inheritance

objectPageSetup

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

AdjustToWidestPage

Gets or sets flag that determines case when page size will be adjusted to widest page in document. This options is time-consuming so time of document processing can be increased in two times. Adjustment will take place only if widest page in document is wider than page size determined in Aspose.Html.Rendering.PageSetup. Adjusted page size will be used for all pages in document.

public bool AdjustToWidestPage { get; set; }

Property Value

bool

AnyPage

Gets or sets all pages configuration in the the page-sequence.

public Page AnyPage { get; set; }

Property Value

Page

AtPagePriority

Gets or sets Aspose.Html.Rendering.AtPagePriority which will determine order of applying page size declarations. By default options will override css @page rules https://www.w3.org/TR/CSS2/page.html#page-selectors.

public AtPagePriority AtPagePriority { get; set; }

Property Value

AtPagePriority

FirstPage

Gets or sets the first page configuration.

public Page FirstPage { get; set; }

Property Value

Page

LeftPage

Gets the Odd Page configuration.

public Page LeftPage { get; }

Property Value

Page

PageLayoutOptions

Gets or sets the Aspose.Html.Rendering.PageLayoutOptions. Default value is Aspose.Html.Rendering.PageLayoutOptions.None, any other value will override the Aspose.Html.Rendering.PageSetup.AdjustToWidestPage behaviour. Works only with HTML documents.

public PageLayoutOptions PageLayoutOptions { get; set; }

Property Value

PageLayoutOptions

RightPage

Gets the Even Page configuration.

public Page RightPage { get; }

Property Value

Page

Methods

SetLeftRightPage(Page, Page)

Sets the Left/Right page configuration.

public void SetLeftRightPage(Page leftPage, Page rightPage)

Parameters

leftPage Page

The left page.

rightPage Page

The right page.