This example shows how to create a document package from a template with the Java SDK.
First, templates are retrieved by calling on the eSignLive PackageService(). Templates are returned as page by eSignLive. Next, a simple check is made if there any templates returned. In this example, an iterator object is used to retrieve the first template in the page. Then, the DocumentPackage object is built with specified parameters. In this example, the template has two placeholders with ids “Signer1” and “Signer2” respectively. The two signers will replace the placeholders in the template. Finally, the document package is created and sent with the eSignLive client.
This example is part of the Java SDK GitHub project created by the eSignLive Engineering group. The project is continually updated as changes to the eSignLive application and eSignLive Java SDK happen. All examples from the project are easily searchable from within the Code Share section, with detailed descriptions or you can visit the examples portion of the SDK project directly:
https://github.com/silanis/esl.sdk.java/tree/master/sdk/src/main/java/com/silanis/esl/sdk/examples
First, templates are retrieved by calling on the eSignLive PackageService(). Templates are returned as page by eSignLive. Next, a simple check is made if there any templates returned. In this example, an iterator object is used to retrieve the first template in the page. Then, the DocumentPackage object is built with specified parameters. In this example, the template has two placeholders with ids “Signer1” and “Signer2” respectively. The two signers will replace the placeholders in the template. Finally, the document package is created and sent with the eSignLive client.
This example is part of the Java SDK GitHub project created by the eSignLive Engineering group. The project is continually updated as changes to the eSignLive application and eSignLive Java SDK happen. All examples from the project are easily searchable from within the Code Share section, with detailed descriptions or you can visit the examples portion of the SDK project directly:
https://github.com/silanis/esl.sdk.java/tree/master/sdk/src/main/java/com/silanis/esl/sdk/examples
Rate this Code Share