Using digital signature tool in Android

For Android, available in the full version of the library only. See Apryse full or standard?

The Tools package comes with a basic DigitalSignature tool that allows signing with a specific keystore and password. The DigitalSignature tool can be used with the UI components such as DocumentActivity and PdfViewCtrlTabHostFragment2. You can also use the tool with PDFViewCtrl through ToolManager.

Apryse Docs Image

By default, the signature tool does not sign with a certificate. Certificate-based signatures can be enabled using ToolManagerBuilder which will add a certificate picker and password input field to the signature UI flow.

Alternatively you can define a certificate file and password in ToolManagerBuilder. This will disable the additional signing flow for digital signatures and use the specified certificate instead.

1ToolManagerBuilder tmBuilder = ToolManagerBuilder.from()
2 .setUseDigitalSignature(true)
3 // Optionally specify a default certificate file and password
4 .setDigitalSignatureKeystorePath("my_keystore_path")
5 .setDigitalSignatureKeystorePassword("my_keystore_password");
6ViewerConfig.Builder builder = new ViewerConfig.Builder();
7ViewerConfig config = builder
8 //...
9 .toolManagerBuilder(tmBuilder)
10 .build();

The signed document is then saved to a separate file.

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales