public class XfdfObject extends Object
Constructor and Description |
---|
XfdfObject() |
Modifier and Type | Method and Description |
---|---|
AnnotsObject |
getAnnots()
Gets the annots element, a child of the xfdf element and is the container for annot elements.
|
List<AttributeObject> |
getAttributes()
Gets the list of attributes of xfdf object.
|
FObject |
getF()
Gets the f element, child of the xfdf element.
|
FieldsObject |
getFields()
Gets the fields element, a child of the xfdf element and is the container for form field elements.
|
IdsObject |
getIds()
Gets the ids element, child of the xfdf element.
|
void |
mergeToPdf(PdfDocument pdfDocument, String pdfDocumentName)
Merges info from XfdfObject to pdf document.
|
void |
setAnnots(AnnotsObject annots)
Sets the annots element, a child of the xfdf element and is the container for annot elements.
|
void |
setAttributes(List<AttributeObject> attributes)
Sets the list of attributes of xfdf object.
|
void |
setF(FObject f)
Sets the f element, child of the xfdf element.
|
void |
setFields(FieldsObject fields)
Sets the fields element, a child of the xfdf element and is the container for form field elements.
|
void |
setIds(IdsObject ids)
Sets the ids element, child of the xfdf element.
|
void |
writeToFile(OutputStream os)
Writes info from XfdfObject to .xfdf file.
|
void |
writeToFile(String filename)
Writes info from XfdfObject to .xfdf file.
|
public FObject getF()
public void setF(FObject f)
public IdsObject getIds()
public void setIds(IdsObject ids)
public FieldsObject getFields()
public void setFields(FieldsObject fields)
public AnnotsObject getAnnots()
public void setAnnots(AnnotsObject annots)
public List<AttributeObject> getAttributes()
public void setAttributes(List<AttributeObject> attributes)
public void mergeToPdf(PdfDocument pdfDocument, String pdfDocumentName)
pdfDocument
- the target document for merge.
pdfDocumentName
- the name of the target document. Will be checked in the merge process to determined if it is the same as href attribute of f element of merged XfdfObject. If the names are different, a warning will be thrown.
public void writeToFile(String filename) throws IOException, TransformerException, ParserConfigurationException
filename
- name of the target file.
IOException
- if a problem occured during opening the target file.
TransformerException
- if there is an error while creating xml structure.
ParserConfigurationException
- if there is an error while writing info into xnl format.
public void writeToFile(OutputStream os) throws TransformerException, ParserConfigurationException
os
- target output stream.
TransformerException
- if there is an error while creating xml structure.
ParserConfigurationException
- if there is an error while writing info into xml format.
Copyright © 1998–2020 iText Group NV. All rights reserved.