PageMediaBox Property
Gets or sets media box of the page.

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

Property Value

Type: Rectangle
Examples
Example demonstrates how to get media box of the page:
C#
Document document = new Document("sample.pdf");
Rectangle mediaBox = document.Pages[1].MediaBox;
See Also