YYSI PDF Crop — public verification fixtures, expected values Published 2026-11-13. Fixtures are original synthetic files by YYSI; reuse for testing is fine, provided as-is. Cropping is NOT redaction. FIXTURE 1: cropbox-origin.pdf Page geometry: MediaBox (0, 0, 600, 800); existing CropBox (50, 100, 550, 700) -> visible region today: 500 x 600 pt crop with margins 0 pt on all four sides: expected CropBox after: (50, 100, 550, 700) [UNCHANGED - zero margins keep the visible area; a tool that resets to the MediaBox 600x800 FAILS] expected visible size: 500 x 600 pt crop with margins 10 pt on all four sides: expected CropBox after: (60, 110, 540, 690) expected visible size: 480 x 580 pt FIXTURE 2: multipage-rotation.pdf Page 1: 600 x 800, /Rotate 90, no CropBox Page 2: 500 x 600, /Rotate 180, existing CropBox (10, 10, 480, 580) Page 3: 400 x 400, /Rotate 270, no CropBox crop with margins 15 pt on all four sides, page range "2-3": page 1: untouched (outside range; no CropBox added) page 2: CropBox (25, 25, 450, 550); rotation preserved; visible 450 x 550 pt page 3: CropBox (15, 15, 370, 370); rotation preserved; visible 370 x 370 pt NOTES * Crop boxes live in unrotated page space. 180 deg keeps width x height; 90/270 deg swap them in the viewer. * Since 2026-11-13 YYSI's PDF Crop anchors cropping to the page's current visible frame (CropBox when present, else MediaBox) and preserves the box origin, so pre-cropped files and non-zero MediaBox origins behave exactly as a viewer would expect. * Plain A4 (no CropBox), 25.4 mm trimmed on every side -> crop box exactly (72.00, 72.00, 523.28, 769.89). Verified 2026-11-12; unchanged for CropBox-less pages by the 2026-11-13 fix. METHOD (rerun it yourself) 1. Open https://yysi.com/tools/pdf-crop/ and load a fixture. 2. Enter the margins / range above, crop, download the result. 3. Inspect with an independent PDF reader, e.g. PyMuPDF: python -c "import pymupdf; d = pymupdf.open('cropped.pdf'); print(d.xref_get_key(d[0].xref, 'CropBox'))" 4. Compare with the expectations above.