Qu

pdf.media_box

Builtin index · File I/O

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.

CodeInputOutputDescription
result = pdf.media_box(src, page)
src —not documented yet
page 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.