Rect

Page.Rect 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.

public Rectangle Rect { get; set; }

Examples

Example demonstrates how to get page rectangle:

Document document = new Document("sample.pdf");
Page page = document.Pages[1];
Rectangle pageRect = page.Rect;

See Also