Files
pdfcraft/crates
Eric Kaden df693a24be M9: empty signature fields show a Sign tab
An empty signature field that a click would sign now carries a small
accent tab, with the signature icon and "Sign", inside its top-left
corner while the Select tool is active (not while preparing a form). It
follows the field click's own checks: the document allows filling, the
field isn't read-only, and its widget is shown. The tab drops its label,
then itself, on a field too small at the current zoom. Like the
validation badges it is screen-only chrome, never written into the file,
exports or printing. The label reuses the catalog's "Sign".

The tab sits inside the field, so clicking it starts signing that field
and hovering it shows the pointing hand. Unit tests cover which fields
get a tab (signed, invisible, other-page, unplaced, non-finite and huge
rectangles, read-only fields, refused filling, hidden or moved widgets)
and the layout; a kittest frame test checks the painted tab, the cursor
and the click.
2026-10-20 22:07:08 -04:00
..
…
…