mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-15 23:32:37 +00:00
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>