ExtendedGraphicState Class Documentation
class ExtendedGraphicStateNamespace:datalogics_interface
Detailed Description
The extended graphic state, to supplement original graphic state.
The Graphics State is an internal data structure in a PDF file that holds the parameters that describe graphics within that file. These parameters define how individual graphics are presented on the page, including layers and transparencies.
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.
Uses types
Constructor & Destructor Documentation
ExtendedGraphicState
ExtendedGraphicState()Create a new default ExtendedGraphicState for the document in which this ExtendedGraphicState will be used.
ExtendedGraphicState
ExtendedGraphicState(ExtendedGraphicState && )Parameters
~ExtendedGraphicState
~ExtendedGraphicState()Member Function Documentation
get_alpha_is_shape
bool get_alpha_is_shape()Returns:
boolalphaIsShape - if set true, interpret sources of alpha as shape, else interpret as opacity mask.
Returns if the alpha is to be interpreted as a shape or opacity mask.
get_apply_auto_stroke
bool get_apply_auto_stroke()Returns:
booltrue if stroke adjustment is enabled.
Returns whether stroke adjustment is enabled in the graphics state.
get_apply_overprint_for_other_than_stroking
bool get_apply_overprint_for_other_than_stroking()Returns:
booltrue if overprint is enabled for non-stroke operations.
Returns whether overprint is enabled for operations other than stroking.
get_apply_overprint_for_stroking
bool get_apply_overprint_for_stroking()Returns:
booltrue if overprint is enabled for stroke operations.
Returns whether overprint is enabled for stroke operations.
get_blend_mode
BlendMode get_blend_mode()Returns:
BlendModeblendMode - the blend mode used in object painting.
Returns the blend mode for the color composite for each object painted.
get_opacity_for_other_than_stroking
double get_opacity_for_other_than_stroking()Returns:
doubleopacity, a value between 0.0 and 1.0.
Gets the opacity value for other-than-stroke operations.
get_opacity_for_stroking
double get_opacity_for_stroking()Returns:
doubleopacity, a value between 0.0 and 1.0.
Gets the opacity value for stroke operations.
get_overprint_mode
OverprintMode get_overprint_mode()Returns:
OverprintModeThe overprint mode setting.
Returns the overprint mode setting.
Specifies whether a color component value of 0 in a DeviceCMYK color space should erase that component or leave it unchanged when overprinting.
get_smoothness_tolerance
double get_smoothness_tolerance()Returns:
doubletolerance, a value between 0.0 and 1.0.
Gets the smoothness tolerance, the quality of smooth shading.
get_text_knockout
bool get_text_knockout()Returns:
boolenabled - if true, text knockout is enabled.
Returns whether text knockout is enabled in the graphics state.
operator=
ExtendedGraphicState & operator=(ExtendedGraphicState && )Parameters
Returns:
ExtendedGraphicState &set_alpha_is_shape
void set_alpha_is_shape(bool alpha_is_shape)Parameters
alpha_is_shape: bool- if set true, interpret sources of alpha as shape, else interpret as opacity mask.
Returns:
voidSpecifies if the alpha is to be interpreted as a shape or opacity mask.
set_apply_auto_stroke
void set_apply_auto_stroke(bool apply)Parameters
apply: boolWhether stroke adjustment is enabled.
Returns:
voidSpecifies whether stroke adjustment is enabled in the graphics state.
set_apply_overprint_for_other_than_stroking
void set_apply_overprint_for_other_than_stroking(bool apply)Parameters
apply: boolWhether to enable overprint for non-stroke operations.
Returns:
voidSpecifies if overprint is enabled for operations other than stroking.
set_apply_overprint_for_stroking
void set_apply_overprint_for_stroking(bool apply)Parameters
apply: boolWhether to enable overprint for stroke operations.
Returns:
voidSpecifies if overprint is enabled for stroke operations.
set_blend_mode
void set_blend_mode(BlendMode mode)Parameters
mode: BlendMode- the blend mode used in object painting.
Returns:
voidSets the blend mode for the color composites for each object painted.
set_opacity_for_other_than_stroking
void set_opacity_for_other_than_stroking(double opacity)Parameters
opacity: double- the opacity level, from 0.0 to 1.0, inclusive.
Returns:
voidSets the opacity value for other-than-stroke operations.
set_opacity_for_stroking
void set_opacity_for_stroking(double opacity)Parameters
opacity: double- the opacity level, from 0.0 to 1.0, inclusive.
Returns:
voidSets the opacity value for stroke operations.
set_overprint_mode
void set_overprint_mode(OverprintMode mode)Parameters
mode: OverprintModeThe mode setting.
Returns:
voidThe overprint mode setting.
Specifies whether a color component value of 0 in a DeviceCMYK color space should erase that component or leave it unchanged when overprinting.
set_smoothness_tolerance
void set_smoothness_tolerance(double tolerance)Parameters
tolerance: double- the smoothness tolerance, from 0.0 to 1.0, inclusive.
Returns:
voidSets the smoothness tolerance, the quality of smooth shading.
set_text_knockout
void set_text_knockout(bool enabled)Parameters
enabled: bool- if set true, text knockout will be enabled.
Returns:
voidSpecifies whether text knockout is enabled in the graphics state.