Use the digital signature tool in WebViewer
In the Insert toolbar group, select the signature tool, then click the +Signature button to open the signature modal. Here, users can choose a signature type and preview it before adding it to the document.
Signatures can be one of three types:
Ink Signatures, where users can choose from one of three colors.

Text Signatures, where users can choose from one of three colors and different fonts.

Image Signatures, where users can upload a signature file by dragging and dropping a file or using the file explorer.

If you have saved signatures, clicking the signature button opens an overlay where you can choose and apply them directly.

Initials as signature
Starting in WebViewer 8.9, the Signature tool supports an additional mode for initials as signatures. This new feature is disabled by default and can be enabled using the following:
If this feature is enabled, the signature modal will also require initials to be added.
Ink Signature and Initials

Text Signature and Initials

Image Signature and Initials

Once created, the signature and initials are saved in the signatures overlay, allowing users to choose whether to apply a signature or initials.

Import existing signatures
If you already have a signature stored for the user, you can import it into the signature tool:
You can also save the signature by calling exportSignatures.
Import existing initials
Starting in WebViewer 8.9, you can also import and export a user's initials.
You can import them into the signature tool, which will make them available in the saved signatures overlay. You must have this feature enabled in order to view the saved initials in the viewer.
You can also save them by calling exportInitials.
Add custom fonts
By default, GreatVibes is the only font that is available in the Type tab. More fonts can be added using the setSignatureFonts API. The following is an example that adds Tangerine from Google Fonts to the tab.
Here are two ways to import your fonts in index.html:
Or
Export a signature to blob storage
If you created a signature and want to store it for later use, you can export it as a blob and save it to an external storage solution. If you are on WebViewer 8.9 and have initials enabled, the following code will also save initials as blobs for storage.
Sample function to export the signature:
Add a disclaimer to the signature modal
Starting in WebViewer 12.2, you can add a disclaimer to the signature modal, for example, to cover confidentiality or legal terms. The disclaimer is off by default. To show it, call UI.enableSignatureDisclaimer. To hide it again, call UI.disableSignatureDisclaimer. You can also replace the default text with your own by using UI.setTranslations.
The following screenshot shows the signature modal with the default disclaimer text. If you set a custom message with UI.setTranslations, it replaces this text.

Related blogs
Last updated
Was this helpful?