public class FieldNode extends NativeObject
Modifier and Type | Method and Description |
---|---|
static FieldNode |
copy(Document targetDocument,
FieldNode fieldNode)
Copy a form field node
|
static FieldNode |
createDynamicObject(long handle) |
java.lang.String |
getDisplayName()
User interface name (Getter)
|
java.lang.String |
getExportName()
The name used when exporting (Getter)
|
void |
setDisplayName(java.lang.String value)
User interface name (Setter)
|
void |
setExportName(java.lang.String value)
The name used when exporting (Setter)
|
equals, hashCode
public static FieldNode createDynamicObject(long handle)
public static FieldNode copy(Document targetDocument, FieldNode fieldNode) throws java.io.IOException, ConformanceException
targetDocument
.
The returned object is associated with the given target document but not yet part of it.targetDocument
- the output document with which the returned object is associatedfieldNode
- a form field of a different documentjava.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 the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- the fieldNode
object is not associated with an input documentjava.lang.IllegalArgumentException
- the target document contains form fields that have been implicitly copied by a call to
pdftoolbox.pdf.Page.copy
with an argument options
in which
pdftoolbox.pdf.PageCopyOptions.setFormFields
was set to FormFieldCopyStrategy.COPY
java.lang.IllegalArgumentException
- the target document contains unsigned signatures that have been implicitly copied by a call to
pdftoolbox.pdf.Page.copy
with an argument options
in which
pdftoolbox.pdf.PageCopyOptions.setUnsignedSignatures
was set to pdftoolbox.pdf.CopyStrategy.COPY
.java.lang.IllegalArgumentException
- the fieldNode
argument has already been copied to this documentjava.lang.IllegalArgumentException
- the fieldNode
argument is null
java.lang.IllegalArgumentException
- the fieldNode
object has been closedpublic java.lang.String getDisplayName()
java.lang.IllegalStateException
- if the object has already been closedpublic void setDisplayName(java.lang.String value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlypublic java.lang.String getExportName()
java.lang.IllegalStateException
- if the object has already been closedpublic void setExportName(java.lang.String value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-only