Sign PDFs and manage signing workflows using JavaScript
For more advanced controls - including document permissions, custom signing for HSM integration, and LTV/time stamping - please refer to the sample below: Digitally sign PDF files
WebViewer provides APIs to create smooth signing workflows. You can easily create fields, assign users to specific fields, and help them navigate the form and sign it. These APIs are flexible, so you can create customized signing apps for your needs.

The fields in these workflows can hold e-signatures or digital signatures. For the difference between them, and how certificates and certificate authorities work, see Digital signature vs. e-signature.
Assign fields to users
By default, anyone can sign any field. In practice, you often need to limit fields to specific users. You can use Field.setUser(id) and FieldManager.getFieldsForUser(id) APIs to assign a user to a field and get a list of fields for a user. You can then update field permissions to allow only that user to sign it.
Related links
Jump to a field
To make the viewer jump to a specific field, you can use the FieldManager.jumpToField API. The API accepts options to adjust how the viewer will jump. This feature can be leveraged to automatically scroll a user between fields in a signing workflow. See Digital signature samples using JavaScript.
Related links
Digitally sign a field
Warning: Make sure you have Full API enabled in WebViewer.
To sign an existing approval signature field in a PDF document:
Related links
For more advanced controls - including document permissions, custom signing for HSM integration, and LTV/time stamping - please refer to the sample below: Digitally sign PDF files
About approval signatures
The Apryse SDK enables approval signatures in PDF documents using a Digital Certificate, in accordance with the latest PDF specification.
By leveraging public key infrastructure (PKI) technology, with a certificate issued by a trusted certificate authority (CA), a signer can use a certificate-based digital ID to guarantee a signature's authenticity. A certificate-based digital signature can also ensure that a document has not been modified since the signature was applied, preserving its authenticity.
When you open a signed PDF in WebViewer, the Signatures panel shows the verification result for each signature.

In this example, the first is an approval signature (Signed) and the second is a certification signature (Certified byβ¦).
Next steps
You can use the APIs above to build a custom document signing app that is quick, easy, and secure. Users can be assigned to specific fields, automatically scroll to the next field, and finalize their changes with confidence in the document's authenticity.
For a sample implementation, see Digital signature samples using JavaScript.
Last updated
Was this helpful?