Click or drag to resize
Pdftools logo

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.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.2.0+708f7116d933787a0712d56133e4c2c9bf21e5e3
Syntax
C#
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
ExceptionCondition
IOExceptionError reading from the source document or writing to the target document
ConformanceExceptionThe conformance level of the source document is not compatible with the conformance level of the target document.
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionthe groupElement object is not associated with an input document
ArgumentExceptionthe document associated with the groupElement object has already been closed
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif groupElement is .
See Also