|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.formdataintegration.client.FormDataIntegrationClient
public class FormDataIntegrationClient
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:
The data format that you can use for importing and exporting depends on the type of form on which you are performing the operation. This data can be in one of the following formats:
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 XFA, XFDF, or FDF 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 |
---|
public FormDataIntegrationClient(ServiceClientFactory serviceClientFactory)
FormDataIntegrationClient(
object.
serviceClientFactory
- A ServiceClientFactory
object that contains connection properties.
For information about setting connection properties, see Invoking Adobe Experience Manager forms Services.Method Detail |
---|
public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
synchronous
- A Boolean value that specifies whether FormDataIntegration service is invoked synchronously.public Document importData(Document inPdfDoc, Document inDataDoc) throws ImportFormDataException, com.adobe.idp.dsc.DSCException
Form type | Import format | Result |
---|---|---|
Acrobat form | XFDF or FDF | Successful |
Acrobat form | XFA | Unsuccessful |
XML form | XFA | Successful |
XML form | XFDF or FDF | Unsuccessful |
inPdfDoc
- A Document
object that represents the PDF document in which data is imported.inDataDoc
- A Document
object that represents XFA, XFDF, or FDF data to import.
Document
object that represents the PDF document that contains the imported data.
ImportFormDataException
- If you attempt to import data into an incompatible PDF document.
com.adobe.idp.dsc.DSCException
- If an error occurs while importing data into a PDF document.public Document exportData(Document inPdfDoc) throws ExportFormDataException, com.adobe.idp.dsc.DSCException
Form type | Import format | Result |
---|---|---|
Form type | Export format | Result |
Acrobat form | XFDF or FDF | Successful |
Acrobat form | XFA | Unsuccessful |
XML form | XFA | Successful |
XML form | XFDF or FDF | Unsuccessful |
inPdfDoc
- A Document
object that represents the PDF document from which data is exported.
Document
object that represents the exported data.
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.public Document exportData2(Document inPdfDoc, DataFormat dataFormat) throws ExportFormDataException, com.adobe.idp.dsc.DSCException
inPdfDoc
- A Document
object that represents the PDF document from which data is exported.DataFormat
- enum value that specifies the format of data exported. Possible values are Auto, XDP and XMLData.
Document
object that represents the exported data.
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |