|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.acrobat.pdf.AbstractHelper
flex.acrobat.pdf.XFAHelper
flex.acrobat.pdf.XDPXFAHelper
public final class XDPXFAHelper
XDPXFAHelper is utility class for manipulating XFA datasets in XDP files containing XFA templates and ultimately saved as a PDF document. XDP based XFA templates require dynamic rendering and as such are only supported by Acrobat Reader 8 (or later).
The XDP must not contain PDF <chunk> elements and
must wrap an XFA template shell that specifies the
<dynamicRender> element.
An example usage of this class is included below:
private void importDataset(File template, File generated, Document dataset)
{
XDPXFAHelper helper = new XDPXFAHelper();
helper.open(template);
helper.importDataset(dataset);
helper.save(generated);
helper.close();
// ...
}
| Field Summary |
|---|
| Fields inherited from interface flex.acrobat.pdf.XFAConstants |
|---|
XFA_DATA_NAMESPACE, XFA_TEMPLATE_NAMESPACE, XFADATA_DATA_QUALIFIED_NODE, XFADATA_DATANODE_ATTR_VALUE, XFADATA_DATANODE_QUALIFIED_ATTR, XFADATA_DATASETS_NODE, XFADATA_DATASETS_QUALIFIED_NODE, XFADATA_PREFIX |
| Constructor Summary | |
|---|---|
XDPXFAHelper()
Constructor. |
|
| Method Summary | |
|---|---|
void |
open(File file)
Opens a raw XDP document that contains an XFA template shell from a file. |
void |
open(InputStream in)
Opens a raw XDP document that contains an XFA template shell from an InputStream. |
void |
open(String location)
Opens a raw XDP document that contains an XFA template shell from a file path location. |
void |
openFromByteArray(byte[] bytes)
Opens a raw XDP document that contains an XFA template shell from a byte array. |
| Methods inherited from class flex.acrobat.pdf.XFAHelper |
|---|
close, importDataset, importDataset, save, save, save, saveToByteArray |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XDPXFAHelper()
| Method Detail |
|---|
public void open(File file)
throws IOException
open in class XFAHelperfile - - a File representing a suitable XDP document.
IOException
public void open(InputStream in)
throws IOException
open in class XFAHelperin - Any InputStream that will return the bytes representing a
suitable XDP document.
IOException
public void open(String location)
throws IOException
open in class XFAHelperlocation - - a String representing the fully qualified path to a
suitable XDP document.
IOExceptionpublic void openFromByteArray(byte[] bytes)
openFromByteArray in class XFAHelperbytes - An array of bytes representing a suitable XDP document.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/acrobat/pdf/XDPXFAHelper.html