mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 04:22:20 +00:00
- `has_signatures` treats a /Contents of only zero bytes as unsigned and finds signature dictionaries in one pass over the file (field /V values, plus /ByteRange dictionaries and document timestamps) instead of two. - Before the first signature, a field's own appearance counts as drawing text only if it or a form XObject it paints shows text; a background-only XObject no longer keeps an appearance that would leave the field blank. The look inside opens at most 16 streams; past that it counts as text, as before. - Tests: zero-filled placeholders (hex and literal), document timestamps, a widget without /AP, background-only and text-drawing XObject appearances with an unencodable character. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>