ExtendedGraphicState Class Documentation

classExtendedGraphicState

Namespace:datalogics_interface

Detailed Description

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.

Constructor & Destructor Documentation

ExtendedGraphicState

ExtendedGraphicState()

Create a new default ExtendedGraphicState for the document in which this ExtendedGraphicState will be used.

~ExtendedGraphicState

~ExtendedGraphicState()

Member Function Documentation

get_alpha_is_shape

boolget_alpha_is_shape()

Returns:

alphaIsShape - 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

boolget_apply_auto_stroke()

Returns:

true if stroke adjustment is enabled.

Returns whether stroke adjustment is enabled in the graphics state.

get_apply_overprint_for_other_than_stroking

boolget_apply_overprint_for_other_than_stroking()

Returns:

true if overprint is enabled for non-stroke operations.

Returns whether overprint is enabled for operations other than stroking.

get_apply_overprint_for_stroking

boolget_apply_overprint_for_stroking()

Returns:

true if overprint is enabled for stroke operations.

Returns whether overprint is enabled for stroke operations.

get_blend_mode

BlendModeget_blend_mode()

Returns:

blendMode - 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

doubleget_opacity_for_other_than_stroking()

Returns:

opacity, a value between 0.0 and 1.0.

Gets the opacity value for other-than-stroke operations.

get_opacity_for_stroking

doubleget_opacity_for_stroking()

Returns:

opacity, a value between 0.0 and 1.0.

Gets the opacity value for stroke operations.

get_overprint_mode

OverprintModeget_overprint_mode()

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

doubleget_smoothness_tolerance()

Returns:

tolerance, a value between 0.0 and 1.0.

Gets the smoothness tolerance, the quality of smooth shading.

get_text_knockout

boolget_text_knockout()

Returns:

enabled - if true, text knockout is enabled.

Returns whether text knockout is enabled in the graphics state.

set_alpha_is_shape

voidset_alpha_is_shape(boolalpha_is_shape)

Parameters

alpha_is_shape: bool

- if set true, interpret sources of alpha as shape, else interpret as opacity mask.

Returns:

void

Specifies if the alpha is to be interpreted as a shape or opacity mask.

set_apply_auto_stroke

voidset_apply_auto_stroke(boolapply)

Parameters

apply: bool

Whether stroke adjustment is enabled.

Returns:

void

Specifies whether stroke adjustment is enabled in the graphics state.

set_apply_overprint_for_other_than_stroking

voidset_apply_overprint_for_other_than_stroking(boolapply)

Parameters

apply: bool

Whether to enable overprint for non-stroke operations.

Returns:

void

Specifies if overprint is enabled for operations other than stroking.

set_apply_overprint_for_stroking

voidset_apply_overprint_for_stroking(boolapply)

Parameters

apply: bool

Whether to enable overprint for stroke operations.

Returns:

void

Specifies if overprint is enabled for stroke operations.

set_blend_mode

voidset_blend_mode(BlendModemode)

Parameters

mode: BlendMode

- the blend mode used in object painting.

Returns:

void

Sets the blend mode for the color composites for each object painted.

set_opacity_for_other_than_stroking

voidset_opacity_for_other_than_stroking(doubleopacity)

Parameters

opacity: double

- the opacity level, from 0.0 to 1.0, inclusive.

Returns:

void

Sets the opacity value for other-than-stroke operations.

set_opacity_for_stroking

voidset_opacity_for_stroking(doubleopacity)

Parameters

opacity: double

- the opacity level, from 0.0 to 1.0, inclusive.

Returns:

void

Sets the opacity value for stroke operations.

set_overprint_mode

voidset_overprint_mode(OverprintModemode)

Parameters

mode: OverprintMode

The mode setting.

Returns:

void

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

voidset_smoothness_tolerance(doubletolerance)

Parameters

tolerance: double

- the smoothness tolerance, from 0.0 to 1.0, inclusive.

Returns:

void

Sets the smoothness tolerance, the quality of smooth shading.

set_text_knockout

voidset_text_knockout(boolenabled)

Parameters

enabled: bool

- if set true, text knockout will be enabled.

Returns:

void

Specifies whether text knockout is enabled in the graphics state.