COSObjectable
public class PDXFA extends java.lang.Object implements COSObjectable
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getBytes() |
Get the XFA content as byte array.
|
COSBase |
getCOSObject() |
Convert this standard java object to a COS object.
|
org.w3c.dom.Document |
getDocument() |
Get the XFA content as W3C document.
|
public PDXFA(COSBase xfaBase)
xfaBase
- The xfa resource.public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public byte[] getBytes() throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document getDocument() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
- parser exception.org.xml.sax.SAXException
- parser exception.java.io.IOException
- if something went wrong when reading the XFA content.getBytes()