Package com.pdftools.toolbox.pdf.forms
Class FieldNode
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.forms.FieldNode
-
public abstract class FieldNode extends NativeObject
Base class for form fields and sub forms
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldNodecopy(Document targetDocument, FieldNode fieldNode)Copy a form field nodejava.lang.StringgetDisplayName()User interface name (Getter)java.lang.StringgetExportName()The name used when exporting (Getter)voidsetDisplayName(java.lang.String value)User interface name (Setter)voidsetExportName(java.lang.String value)The name used when exporting (Setter)-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
copy
public static FieldNode copy(Document targetDocument, FieldNode fieldNode) throws java.io.IOException, ConformanceException
Copy a form field node
Copy a form field node object from an input document to the giventargetDocument. The returned object is associated with the given target document but not yet part of it.- Parameters:
targetDocument- the output document with which the returned object is associatedfieldNode- a form field of a different document- Returns:
- the copied form field, associated with the current document
- Throws:
java.io.IOException- Error reading from the source document or writing to the target documentConformanceException- The conformance level of the source document is not compatible with the conformance level of the target document.java.lang.IllegalArgumentException- if thetargetDocumentargument has already been closedjava.lang.IllegalArgumentException- if thetargetDocumentargument is read-onlyjava.lang.IllegalArgumentException- thefieldNodeobject is not associated with an input documentjava.lang.IllegalArgumentException- the target document contains form fields that have been implicitly copied by a call totoolbox.pdf.Page.copywith an argumentoptionsin whichtoolbox.pdf.PageCopyOptions.setFormFieldswas set toFormFieldCopyStrategy.COPYjava.lang.IllegalArgumentException- the target document contains unsigned signatures that have been implicitly copied by a call totoolbox.pdf.Page.copywith an argumentoptionsin whichtoolbox.pdf.PageCopyOptions.setUnsignedSignatureswas set totoolbox.pdf.CopyStrategy.COPY.java.lang.IllegalArgumentException- the document associated with thefieldNodeobject has been closedjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- iffieldNodeisnull
-
getDisplayName
public java.lang.String getDisplayName()
User interface name (Getter)
The display name is not directly visible, but a PDF viewer can display this name, e.g., in a tool tip.- Throws:
java.lang.IllegalStateException- if the object has already been closed
-
setDisplayName
public void setDisplayName(java.lang.String value)
User interface name (Setter)
The display name is not directly visible, but a PDF viewer can display this name, e.g., in a tool tip.- Throws:
java.lang.IllegalStateException- if the object has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getExportName
public java.lang.String getExportName()
The name used when exporting (Getter)
- Throws:
java.lang.IllegalStateException- if the object has already been closed
-
setExportName
public void setExportName(java.lang.String value)
The name used when exporting (Setter)
- Throws:
java.lang.IllegalStateException- if the object has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
-