Package com.itextpdf.forms.xfdf
Class XfdfWriter
- java.lang.Object
-
- com.itextpdf.forms.xfdf.XfdfWriter
-
class XfdfWriter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
private java.io.OutputStream
outputStream
-
Constructor Summary
Constructors Constructor Description XfdfWriter(java.io.OutputStream outputStream)
Creates a XfdfWriter for output stream specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
addActionObject(ActionObject actionObject, org.w3c.dom.Element onActivation, org.w3c.dom.Document document)
private static void
addAnnot(AnnotObject annotObject, org.w3c.dom.Element annots, org.w3c.dom.Document document)
private static void
addBorderStyleAlt(BorderStyleAltObject borderStyleAltObject, org.w3c.dom.Element annot, org.w3c.dom.Document document)
private static void
addDest(DestObject destObject, org.w3c.dom.Element annot, org.w3c.dom.Document document)
private static void
addFAttributes(FObject fObject, org.w3c.dom.Element f)
(package private) static void
addField(FieldObject fieldObject, org.w3c.dom.Element parentElement, org.w3c.dom.Document document, java.util.List<FieldObject> fieldList)
private static void
addFit(FitObject fitObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static void
addFitB(FitObject fitBObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static void
addFitBH(FitObject fitBHObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static void
addFitBV(FitObject fitBVObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static void
addFitH(FitObject fitHObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static void
addFitR(FitObject fitRObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static void
addFitV(FitObject fitVObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static void
addIdsAttributes(IdsObject idsObject, org.w3c.dom.Element ids)
private static void
addPopup(AnnotObject popupAnnotObject, org.w3c.dom.Element popup, org.w3c.dom.Element annot)
private static void
addXYZ(FitObject xyzObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
private static java.util.List<FieldObject>
findChildrenFields(FieldObject field, java.util.List<FieldObject> fieldList)
(package private) void
write(XfdfObject xfdfObject)
Writes data fromXfdfObject
into a xfdf data file.private void
writeDom(XfdfObject xfdfObject)
-
-
-
Method Detail
-
write
void write(XfdfObject xfdfObject) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException
Writes data fromXfdfObject
into a xfdf data file.- Parameters:
xfdfObject
-XfdfObject
containing the data.- Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
-
addField
static void addField(FieldObject fieldObject, org.w3c.dom.Element parentElement, org.w3c.dom.Document document, java.util.List<FieldObject> fieldList)
-
writeDom
private void writeDom(XfdfObject xfdfObject) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
- Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
-
addIdsAttributes
private static void addIdsAttributes(IdsObject idsObject, org.w3c.dom.Element ids)
-
addFAttributes
private static void addFAttributes(FObject fObject, org.w3c.dom.Element f)
-
findChildrenFields
private static java.util.List<FieldObject> findChildrenFields(FieldObject field, java.util.List<FieldObject> fieldList)
-
addAnnot
private static void addAnnot(AnnotObject annotObject, org.w3c.dom.Element annots, org.w3c.dom.Document document)
-
addBorderStyleAlt
private static void addBorderStyleAlt(BorderStyleAltObject borderStyleAltObject, org.w3c.dom.Element annot, org.w3c.dom.Document document)
-
addXYZ
private static void addXYZ(FitObject xyzObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addFit
private static void addFit(FitObject fitObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addFitB
private static void addFitB(FitObject fitBObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addFitBH
private static void addFitBH(FitObject fitBHObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addFitBV
private static void addFitBV(FitObject fitBVObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addFitH
private static void addFitH(FitObject fitHObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addFitR
private static void addFitR(FitObject fitRObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addFitV
private static void addFitV(FitObject fitVObject, org.w3c.dom.Element dest, org.w3c.dom.Document document)
-
addDest
private static void addDest(DestObject destObject, org.w3c.dom.Element annot, org.w3c.dom.Document document)
-
addActionObject
private static void addActionObject(ActionObject actionObject, org.w3c.dom.Element onActivation, org.w3c.dom.Document document)
-
addPopup
private static void addPopup(AnnotObject popupAnnotObject, org.w3c.dom.Element popup, org.w3c.dom.Element annot)
-
-