Take a survey

Developing Applications Using APIs > Digitally Signing and Certifying Documents > Retrieving Signature Field Names > Retrieving signature field using the web service API

Retrieving signature field using the web service API
To retrieve signature field names using the web service API, perform the following tasks:
1.
2.
Using the Microsoft .NET client assembly, create a SignatureServiceService object by invoking its default constructor.
3.
Create a BLOB object by using its constructor. The BLOB object is used to store the PDF document that contains signature fields.
Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the PDF document and the mode in which to open the file.
Create a byte array that stores the content of the System.IO.FileStream object. You can determine the size of the byte array by getting the System.IO.FileStream object’s Length property.
Populate the byte array with stream data by invoking the System.IO.FileStream object’s Read method and passing the byte array, the starting position, and the stream length to read.
Populate the BLOB object by assigning its binaryData property with the contents of the byte array.
4.
Retrieve the signature field names by invoking SignatureServiceService object’s getSignatureFieldList method and passing the BLOB object that contains the PDF document containing signature fields. This method returns an Object array where each element contains a PDFSignatureField object.
Iterate through the Object array to determine if there are signature field names. For each signature field in the PDF document, you can obtain a PDFSignatureField object. To obtain the name of the signature field, invoke the PDFSignatureField object’s getName method. This method returns a string value that specifies the signature field name.
View Quick Start
 

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/signaturesGetFieldNames.88.4.html