|
|
•
• Using the Microsoft .NET client assembly, create a FormDataIntegrationService object by invoking its default constructor.
•
• Create a System.IO.FileStream object by invoking its constructor and passing a string value that specifies the location of the PDF form 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.
•
• Create a BLOB object by using its constructor. This BLOB object is used to store the data that is imported into the form.
• Create a System.IO.FileStream object by invoking its constructor and passing a string value that specifies the location of the XML file that contains data to import 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.
• Import data into the PDF form by invoking the FormDataIntegrationClient object’s importData method and passing the following values:
• The BLOB object that stores the PDF form.
• The BLOB object that stores form data.The importData method returns a BLOB object that stores a PDF form that contains the data located in the XML data source.
• Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the PDF file.
• Create a byte array that stores the data content of the BLOB object that was returned by the importData method. Populate the byte array by getting the value of the BLOB object’s binaryData data member.
• Create a System.IO.BinaryWriter object by invoking its constructor and passing the System.IO.FileStream object.
• Write the contents of the byte array to a PDF file by invoking the System.IO.BinaryWriter object’s Write method and passing the byte array.
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/importingData.52.4.html