Page Height and Width

I am unable to find the probably the simplest thing. I want to evaluate an existing pdf document to ensure the page size is 8.5x11. but I don’t see any height and width properties on the page class. How do I do this?



I do it this way, I suspect it’s what you’re looking for.

const decimal pointsPerInch = 72m;
decimal pageHeight = (decimal)page.MediaBox.Height / pointsPerInch;
decimal pageWidth = (decimal)page.MediaBox.Width / pointsPerInch;
if (page.Rotate == Rotation.on90 || page.Rotate == Rotation.on270)
{
var w = pageHeight;
pageHeight = pageWidth;
pageWidth = w;
}

Fantastic,

Thank you for the help.