Class FieldNode
- java.lang.Object
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeBase
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
-
- com.pdf_tools.fourheights.pdftoolbox.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 FieldNode
copy(Document targetDocument, FieldNode fieldNode)
Copy a form field nodejava.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)-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.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 thetargetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if thetargetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- thefieldNode
object is not associated with an input documentjava.lang.IllegalArgumentException
- the target document contains form fields that have been implicitly copied by a call topdftoolbox.pdf.Page.copy
with an argumentoptions
in whichpdftoolbox.pdf.PageCopyOptions.setFormFields
was set toFormFieldCopyStrategy.COPY
java.lang.IllegalArgumentException
- the target document contains unsigned signatures that have been implicitly copied by a call topdftoolbox.pdf.Page.copy
with an argumentoptions
in whichpdftoolbox.pdf.PageCopyOptions.setUnsignedSignatures
was set topdftoolbox.pdf.CopyStrategy.COPY
.java.lang.IllegalArgumentException
- the document associated with thefieldNode
object has been closedjava.lang.IllegalArgumentException
- iftargetDocument
isnull
java.lang.IllegalArgumentException
- iffieldNode
isnull
-
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
-
-