MediaBox

Page.MediaBox property

Gets or sets media box of the page.

public Rectangle MediaBox { get; set; }

Examples

Example demonstrates how to get media box of the page:

Document document = new Document("sample.pdf");
Rectangle mediaBox = document.Pages[1].MediaBox;

See Also