Package com.pdftools.toolbox.pdf.content
Class GroupElement
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.content.ContentElement
-
- com.pdftools.toolbox.pdf.content.GroupElement
-
public class GroupElement extends ContentElement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupElementcopyWithoutContent(Document targetDocument, GroupElement groupElement)Copy a group element without copying its contentGroupgetGroup()This group element's group object.-
Methods inherited from class com.pdftools.toolbox.pdf.content.ContentElement
copy, getBoundingBox, getOcm, getTransform, setTransform
-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
copyWithoutContent
public static GroupElement copyWithoutContent(Document targetDocument, GroupElement groupElement) throws java.io.IOException, ConformanceException
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.- Parameters:
targetDocument- the output document with which the returned object is associatedgroupElement- a group element of a different document- Returns:
- the new group element, associated with the current document
- Throws:
java.io.IOException- Error reading from the source document or writing to the target documentConformanceException- The conformance level of the source document is not compatible with the conformance level of the target document.java.lang.IllegalArgumentException- if thetargetDocumentargument has already been closedjava.lang.IllegalArgumentException- if thetargetDocumentargument is read-onlyjava.lang.IllegalArgumentException- thegroupElementobject is not associated with an input documentjava.lang.IllegalArgumentException- the document associated with thegroupElementobject has already been closedjava.lang.IllegalArgumentException- iftargetDocumentisnulljava.lang.IllegalArgumentException- ifgroupElementisnull
-
getGroup
public Group getGroup()
This group element's group object.- Throws:
java.lang.IllegalStateException- the object has already been closed
-
-