FormTransparencyGroup Class
Defines transparency settings for a PDF form XObject.
Declaration
public class FormTransparencyGroup extends JavaObject implements ICloneable
Remarks
A transparency group controls how the contents of a form are composited with other page elements.
Use FormTemplate.setGroup() class to specify whether the group is isolated, uses knockout behavior, and which color space applies to transparency calculations.
Implements
Inherited Members
Inheritance
FormTransparencyGroup()
Initializes a new instance of the FormTransparencyGroup class.
Declaration
public FormTransparencyGroup()
Methods
clone(DocumentCloneContext context) Method
Creates a copy of the current object.
Declaration
public FormTransparencyGroup clone(DocumentCloneContext context)
Parameters
| Name | Type | Description |
|---|---|---|
| context | DocumentCloneContext | The context used to clone document objects. |
Returns
| Type | Description |
|---|---|
FormTransparencyGroup |
A copy of the current |
deepClone() Method
Creates a deep copy of the current object.
Declaration
public FormTransparencyGroup deepClone()
Returns
| Type | Description |
|---|---|
FormTransparencyGroup |
A deep copy of the current object. |
getColorSpace() Method
Returns the color space used for transparency group calculations.
Declaration
public ColorSpace getColorSpace()
Returns
| Type | Description |
|---|---|
| ColorSpace | The color space of the transparency group. |
getIsolated() Method
Returns whether the transparency group is isolated.
Declaration
public boolean getIsolated()
Returns
| Type | Description |
|---|---|
| boolean |
|
getKnockout() Method
Returns whether the transparency group uses knockout behavior.
Declaration
public boolean getKnockout()
Returns
| Type | Description |
|---|---|
| boolean |
|
objectClone() Method
Creates a copy of the current object.
Declaration
public Object objectClone()
Returns
| Type | Description |
|---|---|
| Object | A copy of the current object. |
setColorSpace(ColorSpace value) Method
Sets the color space used for transparency group calculations.
Declaration
public void setColorSpace(ColorSpace value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ColorSpace | The color space of the transparency group. |
setIsolated(boolean value) Method
Sets whether the transparency group is isolated.
Declaration
public void setIsolated(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
An isolated group is composited independently from the objects behind it. The group starts with a transparent backdrop instead of inheriting the existing page backdrop.
setKnockout(boolean value) Method
Sets whether the transparency group uses knockout behavior.
Declaration
public void setKnockout(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
When knockout is enabled, overlapping objects within the group replace the underlying objects instead of blending with them.