| ContentElementCopy Method |
Copy a content element
The returned object is associated with the given target document but not yet part of it.
Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.ContentAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.6+c8104d9b5f50644b2c93d424e62edbf40828fde7
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