Files
pdfcraft/crates
MichaelandClaude Opus 5.5 3c5dab25b7 fix(edit): a clip is the union of its rectangles, and one of no area hides all (#3503 review)
Second review of #5075, five findings, each with a case seen failing on
the previous commit:

- A path of several rectangles clipped to the box around them, so text
  in the gap between them was read though nothing of it shows. A clip is
  now the union of its parts, one convex region per rectangle; clips
  intersect part by part (a path of more than 16 keeps the box around
  them, which still holds them all).
- A form's /BBox one point by 1e-10 fell under a fixed area threshold
  and was taken for no box. Whether a region has area is now its area
  against the square of its perimeter, the same at any scale.
- At 1e12 points from the origin the shoelace products lost the area to
  rounding, and the box was dropped. The area is measured from the
  first corner.
- Clips meeting only along an edge intersected to a region of no area
  that a run across the edge still showed through; an intersection with
  no area, or with an empty region on either side, is now empty.
- A clip of no area was taken for no clip, and everything under it was
  read. It has no inside (ISO 32000-2 8.5.4), so it now hides all; only
  a clip whose corners or measure are not finite is left unread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 08:43:50 +08:00
..
2026-11-03 09:20:23 -05:00
…