|
||||||||||
| 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
public class XFAHelper
XFAHelper is utility class for manipulating XFA datasets in PDF files created with Acrobat Professional or LiveCycle Designer. Versions 7 and 8 are currently supported.
An example usage of this class is included below:
private void importDataset(File template, File generated, Document dataset)
{
XFAHelper helper = new XFAHelper();
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 | |
|---|---|
XFAHelper()
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the updated PDF document to free associated resources. |
void |
importDataset(Document dataset)
Imports a new XFA dataset into the current PDF document. |
void |
importDataset(InputStream dataSetStream)
Imports a new XFA dataset into the current PDF document. |
void |
open(File file)
Opens a PDF document that is a pre-rendered shell containing an XFA template from a file. |
void |
open(InputStream in)
Opens a PDF document that is a pre-rendered shell containing an XFA template from an InputStream. |
void |
open(String location)
Opens a PDF document that is a pre-rendered shell containing an XFA template from a file path location. |
void |
openFromByteArray(byte[] bytes)
Opens a PDF document that is a pre-rendered shell containing an XFA template from a byte array. |
void |
save(File file)
Saves the current PDF to the given file. |
void |
save(OutputStream out)
Saves the updated PDF document to an OutputStream. |
void |
save(String location)
Saves the updated PDF to the given file location. |
byte[] |
saveToByteArray()
Saves the updated PDF document as a byte array. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XFAHelper()
| Method Detail |
|---|
public void importDataset(InputStream dataSetStream)
dataSetStream - An InputStream of an XML model to server as an
XFA dataset.public void importDataset(Document dataset)
dataset - A Document representing the XML model of an XFA dataset.
public void open(File file)
throws IOException
open in class AbstractHelperfile - - a File representing a shell PDF.
IOException
public void open(InputStream in)
throws IOException
open in class AbstractHelperin - Any InputStream that will return the bytes representing a
shell PDF.
IOException
public void open(String location)
throws IOException
open in class AbstractHelperlocation - - a String representing the fully qualified path to the
shell PDF.
IOExceptionpublic void openFromByteArray(byte[] bytes)
openFromByteArray in class AbstractHelperbytes - An array of bytes representing a shell PDF.
public final void save(File file)
throws IOException
save in class AbstractHelperlocation - - a fully qualified path that will hold the updated PDF
file.
IOException
public final void save(OutputStream out)
throws IOException
save in class AbstractHelperIOException
public final void save(String location)
throws IOException
save in class AbstractHelperlocation - - a fully qualified path that will hold the updated PDF
file.
IOExceptionpublic final byte[] saveToByteArray()
saveToByteArray in class AbstractHelperpublic void close()
close in class AbstractHelper
|
||||||||||
| 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/XFAHelper.html