| AnnotationCopy Method |
Copy an annotation
Copy an annotation 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.AnnotationsAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax public static Annotation Copy(
Document targetDocument,
Annotation annotation
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- annotation Annotation
-
the annotation to be copied to the targetDocument
Return Value
Annotation
the copied annotation, associated with the
targetDocumentExceptions Exception | Condition |
---|
ArgumentException | if the targetDocument has already been closed |
ArgumentException | if the targetDocument is read-only |
ArgumentException | if the annotation is not associated with an input document |
ArgumentException | if the document associated with the annotation object has already been closed |
ConformanceException | The conformance level of the input document is not compatible
with the conformance level of the targetDocument. |
IOException | Error reading from the input document or writing to the output document |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if annotation is . |
See Also