Qu

pdf.crop_box

Builtin index · File I/O

pdf.crop_box(src, page)

Input: src, page · Output: no output

What it is

The page's /CropBox -- the region a viewer actually shows, which can be smaller than /MediaBox. Falls back to /MediaBox when the page has no /CropBox of its own or inherited, which is what an absent /CropBox means per the spec, not an error. Same Record shape as pdf.media_box.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
pdf.crop_box(src, page)
src —not documented yet
page —The page's /CropBox -- the region a viewer actually shows, which can be smaller than /MediaBox.
not documented yetSame Record shape as pdf.media_box.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.