# ExtendedGraphicState Class

> The extended graphic state, to supplement original graphic state.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/ExtendedGraphicState
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class ExtendedGraphicState
```

**Namespace:** `com::datalogics::PDFL`

## 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.

**Referenced by:** [`GraphicState`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/GraphicState.md)

**Uses types:** [`Function`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md), [`PDFDict`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFDict.md)

## Constructors

### ExtendedGraphicState

```java
com.datalogics.PDFL.ExtendedGraphicState.ExtendedGraphicState()
```

*constructor*

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

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.ExtendedGraphicState.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.ExtendedGraphicState.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.ExtendedGraphicState.finalize()
```

*protected*

**Returns:** `void`

### getAlphaIsShape

```java
boolean com.datalogics.PDFL.ExtendedGraphicState.getAlphaIsShape()
```

**Returns:** `boolean`

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.

### getApplyAutoStroke

```java
boolean com.datalogics.PDFL.ExtendedGraphicState.getApplyAutoStroke()
```

**Returns:** `boolean`

true if stroke adjustment is enabled.

Returns whether stroke adjustment is enabled in the graphics state.

### getApplyOverprintForOtherThanStroking

```java
boolean com.datalogics.PDFL.ExtendedGraphicState.getApplyOverprintForOtherThanStroking()
```

**Returns:** `boolean`

true if overprint is enabled for non-stroke operations.

Returns whether overprint is enabled for operations other than stroking.

### getApplyOverprintForStroking

```java
boolean com.datalogics.PDFL.ExtendedGraphicState.getApplyOverprintForStroking()
```

**Returns:** `boolean`

true if overprint is enabled for stroke operations.

Returns whether overprint is enabled for stroke operations.

### getBlackGeneration

```java
Function com.datalogics.PDFL.ExtendedGraphicState.getBlackGeneration()
```

**Returns:** [`Function`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md)

function - the black generation function.

Gets the black generation function.

### getBlendMode

```java
BlendMode com.datalogics.PDFL.ExtendedGraphicState.getBlendMode()
```

**Returns:** `BlendMode`

blendMode - the blend mode used in object painting.

Returns the blend mode for the color composite for each object painted.

### getOpacityForOtherThanStroking

```java
double com.datalogics.PDFL.ExtendedGraphicState.getOpacityForOtherThanStroking()
```

**Returns:** `double`

opacity, a value between 0.0 and 1.0.

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

### getOpacityForStroking

```java
double com.datalogics.PDFL.ExtendedGraphicState.getOpacityForStroking()
```

**Returns:** `double`

opacity, a value between 0.0 and 1.0.

Gets the opacity value for stroke operations.

### getOverprintMode

```java
OverprintMode com.datalogics.PDFL.ExtendedGraphicState.getOverprintMode()
```

**Returns:** `OverprintMode`

The 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.

### getPDFDict

```java
PDFDict com.datalogics.PDFL.ExtendedGraphicState.getPDFDict()
```

**Returns:** [`PDFDict`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFDict.md)

The dictionary associated with the extended graphic state.

Get the dictionary associated with the extended graphic state.

### getSmoothnessTolerance

```java
double com.datalogics.PDFL.ExtendedGraphicState.getSmoothnessTolerance()
```

**Returns:** `double`

tolerance, a value between 0.0 and 1.0.

Gets the smoothness tolerance, the quality of smooth shading.

### getTextKnockout

```java
boolean com.datalogics.PDFL.ExtendedGraphicState.getTextKnockout()
```

**Returns:** `boolean`

enabled - if true, text knockout is enabled.

Returns whether text knockout is enabled in the graphics state.

### getTransferFunction

```java
java.util.List< Function > com.datalogics.PDFL.ExtendedGraphicState.getTransferFunction()
```

**Returns:** [`java.util.List< Function >`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md)

function - the transfer function.

Gets the transfer function.

### getUndercolorRemoval

```java
Function com.datalogics.PDFL.ExtendedGraphicState.getUndercolorRemoval()
```

**Returns:** [`Function`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md)

function - the undercolor removal function.

Gets the undercolor removal function.

### setAlphaIsShape

```java
void com.datalogics.PDFL.ExtendedGraphicState.setAlphaIsShape(boolean alphaIsShape)
```

**Parameters**

- `alphaIsShape` (`boolean`): 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.

### setApplyAutoStroke

```java
void com.datalogics.PDFL.ExtendedGraphicState.setApplyAutoStroke(boolean applyAutoStrokeAdjustment)
```

**Parameters**

- `applyAutoStrokeAdjustment` (`boolean`): Whether stroke adjustment is enabled.

**Returns:** `void`

Specifies whether stroke adjustment is enabled in the graphics state.

### setApplyOverprintForOtherThanStroking

```java
void com.datalogics.PDFL.ExtendedGraphicState.setApplyOverprintForOtherThanStroking(boolean applyOverprintForOtherThanStroking)
```

**Parameters**

- `applyOverprintForOtherThanStroking` (`boolean`): Whether to enable overprint for non-stroke operations.

**Returns:** `void`

Specifies if overprint is enabled for operations other than stroking.

### setApplyOverprintForStroking

```java
void com.datalogics.PDFL.ExtendedGraphicState.setApplyOverprintForStroking(boolean applyOverprintForStroking)
```

**Parameters**

- `applyOverprintForStroking` (`boolean`): Whether to enable overprint for stroke operations.

**Returns:** `void`

Specifies if overprint is enabled for stroke operations.

### setBlackGeneration

```java
void com.datalogics.PDFL.ExtendedGraphicState.setBlackGeneration(Function function)
```

**Parameters**

- `function` ([`Function`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md)): the black generation function.

**Returns:** `void`

Sets the black generation function.

### setBlendMode

```java
void com.datalogics.PDFL.ExtendedGraphicState.setBlendMode(BlendMode blendMode)
```

**Parameters**

- `blendMode` (`BlendMode`): the blend mode used in object painting.

**Returns:** `void`

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

### setOpacityForOtherThanStroking

```java
void com.datalogics.PDFL.ExtendedGraphicState.setOpacityForOtherThanStroking(double opacity)
```

**Parameters**

- `opacity` (`double`): the opacity level, from 0.0 to 1.0, inclusive.

**Returns:** `void`

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

### setOpacityForStroking

```java
void com.datalogics.PDFL.ExtendedGraphicState.setOpacityForStroking(double opacity)
```

**Parameters**

- `opacity` (`double`): the opacity level, from 0.0 to 1.0, inclusive.

**Returns:** `void`

Sets the opacity value for stroke operations.

### setOverprintMode

```java
void com.datalogics.PDFL.ExtendedGraphicState.setOverprintMode(OverprintMode overprintMode)
```

**Parameters**

- `overprintMode` (`OverprintMode`): The mode setting.

**Returns:** `void`

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.

### setSmoothnessTolerance

```java
void com.datalogics.PDFL.ExtendedGraphicState.setSmoothnessTolerance(double tolerance)
```

**Parameters**

- `tolerance` (`double`): the smoothness tolerance, from 0.0 to 1.0, inclusive.

**Returns:** `void`

Sets the smoothness tolerance, the quality of smooth shading.

### setTextKnockout

```java
void com.datalogics.PDFL.ExtendedGraphicState.setTextKnockout(boolean enabled)
```

**Parameters**

- `enabled` (`boolean`): if set true, text knockout will be enabled.

**Returns:** `void`

Specifies whether text knockout is enabled in the graphics state.

### setTransferFunction

```java
void com.datalogics.PDFL.ExtendedGraphicState.setTransferFunction(java.util.List< Function > function)
```

**Parameters**

- `function` ([`java.util.List< Function >`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md)): the transfer function.

**Returns:** `void`

Sets the transfer function.

### setUndercolorRemoval

```java
void com.datalogics.PDFL.ExtendedGraphicState.setUndercolorRemoval(Function function)
```

**Parameters**

- `function` ([`Function`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Function.md)): the undercolor removal function.

**Returns:** `void`

Sets the undercolor removal function.
