PageInfo

Overview

PageInfo is a class in Aspose.PDF FOSS for .NET.

Container for page dimension and margin properties.

This class provides 2 methods for working with PageInfo objects in .NET programs. Available methods include: Clone, PageInfo. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: AnyMargin, DefaultTextState, Height, IsLandscape, Margin, PureHeight, and 1 more.

Properties

NameTypeAccessDescription
WidthdoubleRead/WritePage width in points.
HeightdoubleRead/WritePage height in points.
IsLandscapeboolRead/WriteWhether the page is in landscape orientation.
MarginMarginInfoRead/WritePage margins.
AnyMarginMarginInfoRead/WriteWhichever margin is currently active for layout passes; alias for Margin.
DefaultTextStateAspose.Pdf.Text.TextState?Read/WriteDefault text state applied to content laid out via this PageInfo.
PureHeightdoubleReadPage height minus top+bottom margins.

Methods

SignatureDescription
PageInfo()Create a free-standing PageInfo (not bound to any page).
Clone()Shallow clone — Margin is shared by reference.

See Also