Skip to content

Mark empty signature fields on the page preview - #484

Merged
kwart merged 1 commit into
masterfrom
feature/blank-sig-field-markers
Aug 29, 2026
Merged

Mark empty signature fields on the page preview#484
kwart merged 1 commit into
masterfrom
feature/blank-sig-field-markers

Conversation

@kwart

@kwart kwart commented Aug 28, 2026

Copy link
Copy Markdown
Member
  • Empty signature fields were shaded by the JPedal preview backend; 3.2.0 switched the default order to PDFBox first (Improve visible signature preview, placement and output workflow #479), so the fields became invisible in the preview.
  • The markers are now drawn by SignatureOverlay from the field rectangles, so they show with every backend, and they are read once per document (PdfExtraInfo.getFieldRelativeRects()).
  • Zero-size and hidden widgets are not marked - they are invisible in any viewer too. The selected field keeps its own, stronger marker.
  • Tests: new SignatureOverlayTest (geometry, replacement, clearing, z-order) and a batch-read case in SignatureFieldResolutionTest; full jsignpdf module suite passes.

- The shading of form fields came from the JPedal preview backend; 3.2.0 made
  PDFBox the default, so empty signature fields stopped being visible.
- Draw the markers in SignatureOverlay instead, from the field rectangles, so
  they show with every backend.
- Skip zero-size and hidden widgets, and the selected field (it keeps its own
  marker).
- PdfExtraInfo.getFieldRelativeRects() reads all field rectangles with one
  document open.
@kwart
kwart merged commit fbaf088 into master Aug 29, 2026
2 checks passed
@kwart
kwart deleted the feature/blank-sig-field-markers branch August 29, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant