com.adobe.livecycle.formdataintegration.client
Class FormDataIntegrationClient

java.lang.Object
  extended by com.adobe.livecycle.formdataintegration.client.FormDataIntegrationClient

public class FormDataIntegrationClient
extends java.lang.Object

Enables you to create a Java object that invokes operations that belong to the FormDataIntegration service. Using this object, you can perform tasks such as importing data into form fields and exporting data from form fields.

You can import and export interactive PDF form data. An interactive PDF form is a PDF document that contains one or more fields for collecting information from a user or displaying custom information. There are two types of PDF forms:

To see an object of this type used in a code example, see the Importing Form Data using the Java API quick start in Programming with LiveCycle ES4.


Constructor Summary
FormDataIntegrationClient(ServiceClientFactory serviceClientFactory)
          A constructor that creates a FormDataIntegrationClient( object.
 
Method Summary
 Document exportData(Document inPdfDoc)
          Deprecated.  
 Document exportData2(Document inPdfDoc, DataFormat dataFormat)
          Exports form data from a PDF document.
 Document importData(Document inPdfDoc, Document inDataDoc)
          Imports XML, XDP, XFA, XFDF form data into a PDF document.
 boolean isSynchronous()
          Specifies whether FormDataIntegration service is invoked synchronously.
 void setSynchronous(boolean synchronous)
          Sets the FormDataIntegration service to be invoked synchronously.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormDataIntegrationClient

public FormDataIntegrationClient(ServiceClientFactory serviceClientFactory)
A constructor that creates a FormDataIntegrationClient( object.

Parameters:
serviceClientFactory - A ServiceClientFactory object that contains connection properties. For information about setting connection properties, see Invoking LiveCycle Services.
Method Detail

isSynchronous

public boolean isSynchronous()
Specifies whether FormDataIntegration service is invoked synchronously. A synchronous request is blocked until FormDataIntegration service finishes processing the request and returns the result back to the caller.

Returns:
A Boolean value that specifies whether FormDataIntegration service is invoked synchronously.

setSynchronous

public void setSynchronous(boolean synchronous)
Sets the FormDataIntegration service to be invoked synchronously. A synchronous request is blocked until FormDataIntegration service finishes processing the request and returns the result back to the caller.

Parameters:
synchronous - A Boolean value that specifies whether FormDataIntegration service is invoked synchronously.

importData

public Document importData(Document inPdfDoc,
                           Document inDataDoc)
                    throws ImportFormDataException,
                           com.adobe.idp.dsc.DSCException
Imports XML, XDP, XFA, XFDF form data into a PDF document. This method imports XFDF data into Acroform PDF documents and XDP/XML data into XFA PDF documents. To see this method used in a code example, see the Importing form data using the Java API quick start in Programming with LiveCycle ES4.

Parameters:
inPdfDoc - A Document object that represents the PDF document in which data is imported.
inDataDoc - A Document object that represents data to import.
Returns:
A Document object that represents the PDF document that contains the imported data.
Throws:
ImportFormDataException - If you attempt to import data into an incompatiable PDF document.
com.adobe.idp.dsc.DSCException - If an error occurs while importing data into a PDF document.

exportData

public Document exportData(Document inPdfDoc)
                    throws ExportFormDataException,
                           com.adobe.idp.dsc.DSCException
Deprecated. 

Exports form data from a PDF document. This method exports XFDF data for Acroform PDF documents and XFA data for XFA PDF documents.

Parameters:
inPdfDoc - A Document object that represents the PDF document from which data is exported.
Returns:
A Document object that represents the exported data.
Throws:
ExportFormDataException - If an error occurs during this operation. For example, if you specify a PDF document that does not contain form fields.
com.adobe.idp.dsc.DSCException - If an error occurs while exporting data from a PDF document.

exportData2

public Document exportData2(Document inPdfDoc,
                            DataFormat dataFormat)
                     throws ExportFormDataException,
                            com.adobe.idp.dsc.DSCException
Exports form data from a PDF document. This method exports XFDF data for Acroform PDF documents and XDP/XML data for XFA PDF documents. For more information, see the Form Data Integration Service section in the LiveCycle ES2 Services Guide.

Parameters:
inPdfDoc - A Document object that represents the PDF document from which data is exported.
DataFormat - An enumeration value that specifies the format of data exported. Possible values are Auto, XDP and XMLData.
Returns:
A Document object that represents the exported data.
Throws:
ExportFormDataException - If an error occurs during this operation. For example, if you specify a PDF document that does not contain form fields.
com.adobe.idp.dsc.DSCException - If an error occurs while exporting data from a PDF document.


[an error occurred while processing this directive] [an error occurred while processing this directive]