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
pageIndexintZero-based page index.
Returns
Exceptions
- ArgumentOutOfRangeException
pageIndexis outside the document's pages.