pdf.media_box
result = pdf.media_box(src, page)
Input: src, page · Output: result
What it is
The page's /MediaBox -- the boundary a PDF prints on, in PDF points (1/72 inch). page is a single page number. Resolves inheritance from an ancestor /Pages node when the page sets none of its own (the common case for a document where every page is the same size), the way a real reader does.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = pdf.media_box(src, page) | src —not documented yetpage numberpage is a single page number. | y1 Numeach Num | Returns a Record with fields x0, y0, x1, y1 (each Num): lower-left then upper-right corner. |
Examples
No documentation example calls this form yet. The File I/O chapter is where one belongs.