getAgreementID

String getAgreementId(String transientDocumentID, String email) throws ClientProtocolException, IOException

Send the document for signing using the transient document Id for signing to the user identified by the email parameter.

getWidgetID

String getWidgetID(String transientDocumentID)

A widget is like a reusable template that can be presented to users multiple times and signed multiple times. Use this method to get widget Id using the transient document Id.

getWidgetURL

String getWidgetURL(String widgetId) throws ClientProtocolException, IOException

Get a widget URL for a specific widget Id. This widget URL can then be presented to the users for signing the document.

Use the API

The AcrobatSignHelperMethods is an OSGi service, so it must be annotated using the @Reference annotation in your java code.

...
// Import the AcrobatSignHelperMethods from the provided bundle
import com.acrobatsign.core.AcrobatSignHelperMethods;
...

@Component(service = { Example.class })
public class ExampleImpl implements Example {

 // Gain a reference to the provided AcrobatSignHelperMethods OSGi service
 @Reference
 com.acrobatsign.core.AcrobatSignHelperMethods acrobatSignHelperMethods;

 function void example() {
    ...
    // Use the AcrobatSignHelperMethods API methods in your code
    String transientDocumentId = acrobatSignHelperMethods.getTransientDocumentID(documentForSigning);

    String agreementId = acrobatSignHelperMethods.getAgreementId(transientDocumentID, "johndoe@example.com");
    ...
 }
}
Previous pageUsing XDP templates with Acrobat Sign
Next page1 - Introduction

Experience Manager