# ColorConvertParams Class

> Holds parameters to be passed to a color convert method.This includes the actions to take in case of a match.Each object is compared against the selection criteria for each of the actions, in order, until a matching action is found.

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

```java
class ColorConvertParams
```

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

## Description

Holds parameters to be passed to a color convert method.This includes the actions to take in case of a match.Each object is compared against the selection criteria for each of the actions, in order, until a matching action is found.

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

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

## Constructors

### ColorConvertParams

```java
com.datalogics.PDFL.ColorConvertParams.ColorConvertParams(java.util.List< ColorConvertActions > convActions)
```

*constructor*

**Parameters**

- `convActions` ([`java.util.List< ColorConvertActions >`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/ColorConvertActions.md)): The list of ColorConvertActions to apply during color conversion.

Constructs a ColorConvertParams with the specified color conversion actions. Initializes AllowLossyCompression to false, all default color profiles to null, and all render intents to Perceptual.

## Methods

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### finalize

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

*protected*

**Returns:** `void`

### getAllowLossyCompression

```java
boolean com.datalogics.PDFL.ColorConvertParams.getAllowLossyCompression()
```

**Returns:** `boolean`

If true, DCT or JPX encoding will be used resulting in a smaller PDF.If false, FlateDecoding will be used instead.

### getColorConvActions

```java
java.util.List< ColorConvertActions > com.datalogics.PDFL.ColorConvertParams.getColorConvActions()
```

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

The list of ColorConvertActions to apply during color conversion. Each object in the document is compared against the selection criteria for each action, in order, until a matching action is found.

### getDefaultCMYK

```java
ColorProfile com.datalogics.PDFL.ColorConvertParams.getDefaultCMYK()
```

**Returns:** `ColorProfile`

The default CMYK ColorProfile used when a document object has no embedded CMYK profile. Initially set to the null color profile.

### getDefaultGray

```java
ColorProfile com.datalogics.PDFL.ColorConvertParams.getDefaultGray()
```

**Returns:** `ColorProfile`

The default Gray ColorProfile used when a document object has no embedded Gray profile. Initially set to the null color profile.

### getDefaultRGB

```java
ColorProfile com.datalogics.PDFL.ColorConvertParams.getDefaultRGB()
```

**Returns:** `ColorProfile`

The default RGB ColorProfile used when a document object has no embedded RGB profile. Initially set to the null color profile.

### getIntentCMYK

```java
RenderIntent com.datalogics.PDFL.ColorConvertParams.getIntentCMYK()
```

**Returns:** `RenderIntent`

The RenderIntent used for CMYK color conversion. Initially set to Perceptual.

### getIntentGray

```java
RenderIntent com.datalogics.PDFL.ColorConvertParams.getIntentGray()
```

**Returns:** `RenderIntent`

The RenderIntent used for Gray color conversion. Initially set to Perceptual.

### getIntentRGB

```java
RenderIntent com.datalogics.PDFL.ColorConvertParams.getIntentRGB()
```

**Returns:** `RenderIntent`

The RenderIntent used for RGB color conversion. Initially set to Perceptual.

### setAllowLossyCompression

```java
void com.datalogics.PDFL.ColorConvertParams.setAllowLossyCompression(boolean newAllowLossyCompression)
```

**Parameters**

- `newAllowLossyCompression` (`boolean`)

**Returns:** `void`

### setColorConvActions

```java
void com.datalogics.PDFL.ColorConvertParams.setColorConvActions(java.util.List< ColorConvertActions > newActions)
```

**Parameters**

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

**Returns:** `void`

### setDefaultCMYK

```java
void com.datalogics.PDFL.ColorConvertParams.setDefaultCMYK(ColorProfile defaultCMYK)
```

**Parameters**

- `defaultCMYK` (`ColorProfile`)

**Returns:** `void`

### setDefaultGray

```java
void com.datalogics.PDFL.ColorConvertParams.setDefaultGray(ColorProfile defaultGray)
```

**Parameters**

- `defaultGray` (`ColorProfile`)

**Returns:** `void`

### setDefaultRGB

```java
void com.datalogics.PDFL.ColorConvertParams.setDefaultRGB(ColorProfile defaultRGB)
```

**Parameters**

- `defaultRGB` (`ColorProfile`)

**Returns:** `void`

### setIntentCMYK

```java
void com.datalogics.PDFL.ColorConvertParams.setIntentCMYK(RenderIntent intentCMYK)
```

**Parameters**

- `intentCMYK` (`RenderIntent`)

**Returns:** `void`

### setIntentGray

```java
void com.datalogics.PDFL.ColorConvertParams.setIntentGray(RenderIntent intentGray)
```

**Parameters**

- `intentGray` (`RenderIntent`)

**Returns:** `void`

### setIntentRGB

```java
void com.datalogics.PDFL.ColorConvertParams.setIntentRGB(RenderIntent intentRGB)
```

**Parameters**

- `intentRGB` (`RenderIntent`)

**Returns:** `void`
