The Signature component appears to clip or truncate the last few characters of the text when rendered in the embedded SimplePDF editor.
Steps to Reproduce
- Add a Signature field in the SimplePDF editor (via embed).
- Enter a longer name/signature (especially with cursive/handwriting style).
- Observe that the last characters are cut off in the rendered output.
Expected Behavior
The full signature text should be visible without any clipping.
Actual Behavior
The last few characters of the signature are truncated.
Observations
- Adding extra spaces at the end of the signature acts as a workaround and prevents clipping.
- Using the Text component instead of Signature works fine.
- This suggests a possible issue with how the Signature component calculates its width/bounding box (likely font metrics related).
Environment
- Package: @simplepdf/react-embed-pdf
- Version: 1.10.0
- Integration: React (iframe embed)
Notes
Since the editor runs inside an iframe, this doesn’t seem fixable from the client side and likely needs adjustment in SimplePDF’s rendering logic.
Happy to provide a minimal repro if needed.
The Signature component appears to clip or truncate the last few characters of the text when rendered in the embedded SimplePDF editor.
Steps to Reproduce
Expected Behavior
The full signature text should be visible without any clipping.
Actual Behavior
The last few characters of the signature are truncated.
Observations
Environment
Notes
Since the editor runs inside an iframe, this doesn’t seem fixable from the client side and likely needs adjustment in SimplePDF’s rendering logic.
Happy to provide a minimal repro if needed.