Class PDGroup
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.graphics.form.PDGroup
-
- All Implemented Interfaces:
COSObjectable
public final class PDGroup extends Object implements COSObjectable
Transparency group.
-
-
Constructor Summary
Constructors Constructor Description PDGroup(COSDictionary dic)Creates a group object from a given dictionary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDColorSpacegetColorSpace()Returns the blending color spaceCOSDictionarygetCOSObject()Convert this standard java object to a COS object.COSNamegetSubType()Returns the groups's subtype, should be "Transparency".booleanisIsolated()Returns true if this group is isolated.booleanisKnockout()Returns true if this group is a knockout.
-
-
-
Constructor Detail
-
PDGroup
public PDGroup(COSDictionary dic)
Creates a group object from a given dictionary- Parameters:
dic-COSDictionaryobject
-
-
Method Detail
-
getCOSObject
public COSDictionary getCOSObject()
Description copied from interface:COSObjectableConvert this standard java object to a COS object.- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The cos object that matches this Java object.
-
getSubType
public COSName getSubType()
Returns the groups's subtype, should be "Transparency".
-
getColorSpace
public PDColorSpace getColorSpace() throws IOException
Returns the blending color space- Returns:
- color space
- Throws:
IOException
-
isIsolated
public boolean isIsolated()
Returns true if this group is isolated. Isolated groups begin with the fully transparent image, non-isolated begin with the current backdrop.
-
isKnockout
public boolean isKnockout()
Returns true if this group is a knockout. A knockout group blends with original backdrop, a non-knockout group blends with the current backdrop.
-
-