📄 xfaform.html
字号:
<HR><A NAME="acroFieldsSom"><!-- --></A><H3>acroFieldsSom</H3><PRE>private <A HREF="../../../../com/lowagie/text/pdf/XfaForm.AcroFieldsSearch.html" title="class in com.lowagie.text.pdf">XfaForm.AcroFieldsSearch</A> <B>acroFieldsSom</B></PRE><DL><DL></DL></DL><HR><A NAME="reader"><!-- --></A><H3>reader</H3><PRE>private <A HREF="../../../../com/lowagie/text/pdf/PdfReader.html" title="class in com.lowagie.text.pdf">PdfReader</A> <B>reader</B></PRE><DL><DL></DL></DL><HR><A NAME="xfaPresent"><!-- --></A><H3>xfaPresent</H3><PRE>private boolean <B>xfaPresent</B></PRE><DL><DL></DL></DL><HR><A NAME="domDocument"><!-- --></A><H3>domDocument</H3><PRE>private <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Document.html?is-external=true" title="class or interface in org.w3c.dom">Document</A> <B>domDocument</B></PRE><DL><DL></DL></DL><HR><A NAME="changed"><!-- --></A><H3>changed</H3><PRE>private boolean <B>changed</B></PRE><DL><DL></DL></DL><HR><A NAME="datasetsNode"><!-- --></A><H3>datasetsNode</H3><PRE>private <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</A> <B>datasetsNode</B></PRE><DL><DL></DL></DL><HR><A NAME="XFA_DATA_SCHEMA"><!-- --></A><H3>XFA_DATA_SCHEMA</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>XFA_DATA_SCHEMA</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.XfaForm.XFA_DATA_SCHEMA">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="XfaForm()"><!-- --></A><H3>XfaForm</H3><PRE>public <B>XfaForm</B>()</PRE><DL><DD>An empty constructor to build on.<P></DL><HR><A NAME="XfaForm(com.lowagie.text.pdf.PdfReader)"><!-- --></A><H3>XfaForm</H3><PRE>public <B>XfaForm</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfReader.html" title="class in com.lowagie.text.pdf">PdfReader</A> reader) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/xml/parsers/ParserConfigurationException.html?is-external=true" title="class or interface in javax.xml.parsers">ParserConfigurationException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXException.html?is-external=true" title="class or interface in org.xml.sax">SAXException</A></PRE><DL><DD>A constructor from a <CODE>PdfReader</CODE>. It basically does everything from finding the XFA stream to the XML parsing.<P><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the reader<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/xml/parsers/ParserConfigurationException.html?is-external=true" title="class or interface in javax.xml.parsers">ParserConfigurationException</A></CODE> - on error<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/xml/sax/SAXException.html?is-external=true" title="class or interface in org.xml.sax">SAXException</A></CODE> - on error</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setXfa(byte[], com.lowagie.text.pdf.PdfReader, com.lowagie.text.pdf.PdfWriter)"><!-- --></A><H3>setXfa</H3><PRE>public static void <B>setXfa</B>(byte[] xfaData, <A HREF="../../../../com/lowagie/text/pdf/PdfReader.html" title="class in com.lowagie.text.pdf">PdfReader</A> reader, <A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html" title="class in com.lowagie.text.pdf">PdfWriter</A> writer) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Sets the XFA key from a byte array. The old XFA is erased.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>xfaData</CODE> - the data<DD><CODE>reader</CODE> - the reader<DD><CODE>writer</CODE> - the writer<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error</DL></DD></DL><HR><A NAME="setXfa(com.lowagie.text.pdf.PdfWriter)"><!-- --></A><H3>setXfa</H3><PRE>public void <B>setXfa</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html" title="class in com.lowagie.text.pdf">PdfWriter</A> writer) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Sets the XFA key from the instance data. The old XFA is erased.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - the writer<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error</DL></DD></DL><HR><A NAME="serializeDoc(org.w3c.dom.Node)"><!-- --></A><H3>serializeDoc</H3><PRE>public static byte[] <B>serializeDoc</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</A> n) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD>Serializes a XML document to a byte array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the XML document<DT><B>Returns:</B><DD>the serialized XML document<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error</DL></DD></DL><HR><A NAME="isXfaPresent()"><!-- --></A><H3>isXfaPresent</H3><PRE>public boolean <B>isXfaPresent</B>()</PRE><DL><DD>Returns <CODE>true</CODE> if it is a XFA form.<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if it is a XFA form</DL></DD></DL><HR><A NAME="getDomDocument()"><!-- --></A><H3>getDomDocument</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Document.html?is-external=true" title="class or interface in org.w3c.dom">Document</A> <B>getDomDocument</B>()</PRE><DL><DD>Gets the top level DOM document.<P><DD><DL><DT><B>Returns:</B><DD>the top level DOM document</DL></DD></DL><HR><A NAME="findFieldName(java.lang.String, com.lowagie.text.pdf.AcroFields)"><!-- --></A><H3>findFieldName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>findFieldName</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, <A HREF="../../../../com/lowagie/text/pdf/AcroFields.html" title="class in com.lowagie.text.pdf">AcroFields</A> af)</PRE><DL><DD>Finds the complete field name contained in the "classic" forms from a partial name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the complete or partial name<DD><CODE>af</CODE> - the fields<DT><B>Returns:</B><DD>the complete name or <CODE>null</CODE> if not found</DL></DD></DL><HR><A NAME="findDatasetsName(java.lang.String)"><!-- --></A><H3>findDatasetsName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>findDatasetsName</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Finds the complete SOM name contained in the datasets section from a possibly partial name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the complete or partial name<DT><B>Returns:</B><DD>the complete name or <CODE>null</CODE> if not found</DL></DD></DL><HR><A NAME="findDatasetsNode(java.lang.String)"><!-- --></A><H3>findDatasetsNode</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</A> <B>findDatasetsNode</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Finds the <CODE>Node</CODE> contained in the datasets section from a possibly partial name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the complete or partial name<DT><B>Returns:</B><DD>the <CODE>Node</CODE> or <CODE>null</CODE> if not found</DL></DD></DL><HR><A NAME="getNodeText(org.w3c.dom.Node)"><!-- --></A><H3>getNodeText</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getNodeText</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node</A> n)</PRE><DL><DD>Gets all the text contained in the child nodes of this node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the <CODE>Node</CODE><DT><B>Returns:</B><DD>the text found or "" if no text was found</DL></DD></DL><HR><A NAME="getNodeText(org.w3c.dom.Node, java.lang.String)"><!-- --></A><H3>getNodeText</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -