Method GetMediaBox

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

GetMediaBox(int)

The page's media box in points, including one inherited from the page tree. Pages without a valid media box report US Letter (0, 0, 612, 792).

public (double X1, double Y1, double X2, double Y2) GetMediaBox(int pageIndex)

Parameters

pageIndex int

Zero-based page index.

Returns

(double X1, double Y1, double X2, double Y2)

Exceptions

ArgumentOutOfRangeException

pageIndex is outside the document's pages.