| GroupElementCopyWithoutContent Method |
Copy a group element without copying its content
Create a new group element, taking a given group element as a template.
The newly created group has the same properties, such as geometric transform, clipping, and soft mask, but it's content is empty.
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.0.0+fdabb036503e9f99735634a6d4f5be875399e9f5
Syntax public static GroupElement CopyWithoutContent(
Document targetDocument,
GroupElement groupElement
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- groupElement GroupElement
-
a group element of a different document
Return Value
GroupElement
the new group 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. |
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentException | the groupElement object is not associated with an input document |
ArgumentException | the document associated with the groupElement object has already been closed |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if groupElement is . |
See Also