pdf.crop_box
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.
| Code | Input | Output | Description |
pdf.crop_box(src, page) | src —not documented yetpage —The page's /CropBox -- the region a viewer actually shows, which can be smaller than /MediaBox. | not documented yet | Same Record shape as pdf.media_box. |
Examples
No documentation example calls this form yet. The File I/O chapter is where one belongs.