 | FieldNodeCopy Method |
Copy a form field node
Copy a form field node object from an input document to the given
targetDocument.
The returned object is associated with the given target document but not yet part of it.
Namespace: PdfTools.Toolbox.Pdf.FormsAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.11.0+eb7160cc6b920e36fb1ea2abe5f76809067c0c55
Syntaxpublic static FieldNode Copy(
Document targetDocument,
FieldNode fieldNode
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- fieldNode FieldNode
-
a form field of a different document
Return Value
FieldNode
the copied form field, associated with the current document
Exceptions| Exception | Condition |
|---|
| IOException | Error reading from the source document or writing to the target document |
| ConformanceException | The conformance level of the source document is not compatible
with the conformance level of the target document. |
| ArgumentException | if the targetDocument argument has already been closed |
| ArgumentException | if the targetDocument argument is read-only |
| ArgumentException | the fieldNode object is not associated with an input document |
| ArgumentException | the target document contains form fields that have been implicitly copied by a call to
Copy(Document, Page, PageCopyOptions) with an argument options in which
FormFields was set to Copy |
| ArgumentException | the target document contains unsigned signatures that have been implicitly copied by a call to
Copy(Document, Page, PageCopyOptions) with an argument options in which
UnsignedSignatures was set to Copy. |
| ArgumentException | the document associated with the fieldNode object has been closed |
| ArgumentNullException | if targetDocument is . |
| ArgumentNullException | if fieldNode is . |
See Also