Skip to content

Signature text gets clipped/truncated at the end in embed (bounding box issue) #34

@Puja-Jorwar

Description

@Puja-Jorwar

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

  1. Add a Signature field in the SimplePDF editor (via embed).
  2. Enter a longer name/signature (especially with cursive/handwriting style).
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions