java.lang.Object
org.sejda.sambox.pdmodel.interactive.form.PDXFAResource
- All Implemented Interfaces:
COSObjectable
An XML Forms Architecture (XFA) resource.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Get the XFA content as byte array.Get the XFA content as W3C document.
-
Constructor Details
-
PDXFAResource
Constructor.- Parameters:
xfaBase- The xfa resource.
-
-
Method Details
-
getCOSObject
- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The
COSBasethat matches this Java object.
-
getBytes
Get the XFA content as byte array. The XFA is either a stream containing the entire XFA resource or an array specifying individual packets that together make up the XFA resource. A packet is a pair of a string and stream. The string contains the name of the XML element and the stream contains the complete text of this XML element. Each packet represents a complete XML element, with the exception of the first and last packet, which specify begin and end tags for the xdp:xdp element. [IS0 32000-1:2008: 12.7.8]- Returns:
- the XFA content
- Throws:
IOException
-
getDocument
Get the XFA content as W3C document.- Returns:
- the XFA content
- Throws:
ParserConfigurationException- parser exception.SAXException- parser exception.IOException- if something went wrong when reading the XFA content.- See Also:
-