PageRect Property
Gets or sets rectangle of the page. Page crop box is returned if specified, otherwise page media box is returned. Please note that this property don't consider page rotation. To get page rectangle considering rotation please use ActualRect.

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 21.9.0
Syntax
public Rectangle Rect { get; set; }

Property Value

Type: Rectangle
Examples
Example demonstrates how to get page rectangle:
C#
Document document = new Document("sample.pdf");
Page page = document.Pages[1];
Rectangle pageRect = page.Rect;
See Also