| 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.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
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