Under the Insert toolbar group, if we select the signature tool, we can click the add signature button which will open the signature modal. Here, users can choose a type of signature and preview it before it is added to the document.
Signatures can be one of three types:
Ink Signatures
Users can choose from one of three colors.
Text Signatures
Users can choose from one of three colors, as well as different fonts.
Image Signatures
Users can upload a signature file by dragging and dropping a file, or using the file explorer.
If there are any saved signatures, clicking the signature button will open an overlay in which signatures can be chosen and applied 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:
Starting in Webviewer 8.9, you can also import and export initials for a user.
You can import them into the signature tool, which will make them available in the saved signatures overlay. Please note you must have this feature enabled in order to view the saved initials in the viewer.
By default GreatVibes is the only font that is available in the Type tab. More fonts can be added using the setSignatureFonts API. Following is an example that adds Tangerine from Google Fonts to the tab.
The css option is not necessary when adding a web safe font.
If you have created a Signature and you would like to it store for later use, you can export the Signature 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.