Click or drag to resize
Pdftools logo

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.FourHeights.PdfToolbox.Pdf.Forms
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public 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
ExceptionCondition
IOExceptionError reading from the source document or writing to the target document
ConformanceExceptionThe conformance level of the source document is not compatible with the conformance level of the target document.
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionthe fieldNode object is not associated with an input document
ArgumentExceptionthe 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
ArgumentExceptionthe 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.
ArgumentExceptionthe document associated with the fieldNode object has been closed
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif fieldNode is .
See Also