| ContentElementCopy Method |
Copy a content element
The returned object is associated with the given target document but not yet part of it.
Namespace: PdfTools.Toolbox.Pdf.ContentAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
Syntax public static ContentElement Copy(
Document targetDocument,
ContentElement contentElement
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- contentElement ContentElement
-
a content element of a different document
Return Value
ContentElement
the copied content element, 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. |
ConformanceException | The conformance of the targetDocument is PDF/A with a conformance level "a": PDF/A-1a, PDF/A-2a, PDF/A-3a. |
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentException | the contentElement object is not associated with an input document |
ArgumentException | the document associated with the contentElement object has already been closed |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if contentElement is . |
See Also