public class ExtendedGraphicState
extends java.lang.Object
The Extended Graphic State was introduced to expand the original Graphics State data structure, providing space to define and store more data objects within a PDF.
| Constructor and Description |
|---|
ExtendedGraphicState()
Create a new default ExtendedGraphicState for the document in which this ExtendedGraphicState will be used.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
getAlphaIsShape()
Returns if the alpha is to be interpreted as a shape or opacity mask.
|
boolean |
getApplyAutoStroke()
Returns whether stroke adjustment is enabled in the graphics state.
|
boolean |
getApplyOverprintForOtherThanStroking()
Specifies if overprint is enabled for operations other than stroking.
|
boolean |
getApplyOverprintForStroking()
Specifies if overprint is enabled for stroke operations.
|
Function |
getBlackGeneration()
Gets the black generation function.
|
BlendMode |
getBlendMode()
Returns the blend mode for the color composite for each object painted.
|
double |
getOpacityForOtherThanStroking()
Gets the opacity value for other-than-stroke operations.
|
double |
getOpacityForStroking()
Gets the opacity value for stroke operations.
|
OverprintMode |
getOverprintMode()
Specifies the overprint mode - specifying whether a color component value of 0 in a DeviceCMYK color space should erase that component or leave it unchanged when overprinting.
|
PDFDict |
getPDFDict()
Get the dictionary associated with the extended graphic state.
|
double |
getSmoothnessTolerance()
Gets the smoothness tolerance, the quality of smooth shading.
|
boolean |
getTextKnockout()
Returns whether text knockout is enabled in the graphics state.
|
java.util.List<Function> |
getTransferFunction()
Gets the transfer function.
|
Function |
getUndercolorRemoval()
Gets the undercolor removal function.
|
void |
setAlphaIsShape(boolean alphaIsShape)
Specifies if the alpha is to be interpreted as a shape or opacity mask.
|
void |
setApplyAutoStroke(boolean applyAutoStrokeAdjustment)
Specifies whether stroke adjustment is enabled in the graphics state.
|
void |
setApplyOverprintForOtherThanStroking(boolean applyOverprintForOtherThanStroking)
Specifies if overprint is enabled for operations other than stroking.
|
void |
setApplyOverprintForStroking(boolean applyOverprintForStroking)
Specifies if overprint is enabled for stroke operations.
|
void |
setBlackGeneration(Function function)
Sets the black generation function.
|
void |
setBlendMode(BlendMode blendMode)
Sets the blend mode for the color composites for each object painted.
|
void |
setOpacityForOtherThanStroking(double opacity)
Sets the opacity value for other-than-stroke operations.
|
void |
setOpacityForStroking(double opacity)
Sets the opacity value for stroke operations.
|
void |
setOverprintMode(OverprintMode overprintMode)
Specifies the overprint mode - specifying whether a color component value of 0 in a DeviceCMYK color space should erase that component or leave it unchanged when overprinting.
|
void |
setSmoothnessTolerance(double tolerance)
Sets the smoothness tolerance, the quality of smooth shading.
|
void |
setTextKnockout(boolean enabled)
Specifies whether text knockout is enabled in the graphics state.
|
void |
setTransferFunction(java.util.List<Function> function)
Sets the transfer function.
|
void |
setUndercolorRemoval(Function function)
Sets the undercolor removal function.
|
public ExtendedGraphicState()
public void delete()
public void setApplyOverprintForStroking(boolean applyOverprintForStroking)
applyOverprintForStroking - whether to enable overprint for stroke operations.public boolean getApplyOverprintForStroking()
public void setApplyOverprintForOtherThanStroking(boolean applyOverprintForOtherThanStroking)
applyOverprintForOtherThanStroking - whether to enable overprint for stroke operations.public boolean getApplyOverprintForOtherThanStroking()
public void setOverprintMode(OverprintMode overprintMode)
overprintMode - the mode setting.public OverprintMode getOverprintMode()
public void setApplyAutoStroke(boolean applyAutoStrokeAdjustment)
applyAutoStrokeAdjustment - whether it is enabled, true or false.public boolean getApplyAutoStroke()
public void setBlendMode(BlendMode blendMode)
blendMode - the blend mode used in object painting.public BlendMode getBlendMode()
public void setOpacityForStroking(double opacity)
opacity - the opacity level, from 0.0 to 1.0, inclusive.public double getOpacityForStroking()
public void setOpacityForOtherThanStroking(double opacity)
opacity - the opacity level, from 0.0 to 1.0, inclusive.public double getOpacityForOtherThanStroking()
public void setAlphaIsShape(boolean alphaIsShape)
alphaIsShape - if set true, interpret sources of alpha as shape, else interpret as opacity mask.public boolean getAlphaIsShape()
public void setTextKnockout(boolean enabled)
enabled - if set true, text knockout will be enabled.public boolean getTextKnockout()
public void setSmoothnessTolerance(double tolerance)
tolerance - the smoothness tolerance, from 0.0 to 1.0, inclusive.public double getSmoothnessTolerance()
public void setBlackGeneration(Function function)
function - the black generation function.public Function getBlackGeneration()
public void setUndercolorRemoval(Function function)
function - the undercolor removal function.public Function getUndercolorRemoval()
public void setTransferFunction(java.util.List<Function> function)
function - the transfer function.public java.util.List<Function> getTransferFunction()
public PDFDict getPDFDict()