# FlattenTransparencyParams Class

> Represents control parameters for flattening transparencies within a PDF file.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/FlattenTransparencyParams
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class FlattenTransparencyParams : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Represents control parameters for flattening transparencies within a PDF file.

Class that represents control parameters for flattening transparencies within a PDF file. PDF files can hold objects that are stacked, and that are partially or fully transparent. This means that these objects can blend in various ways with objects behind them. With a stacked set of transparent graphics or images in a PDF file, each one contributing to the final result that appears on the page. One or more graphics images presented together in a stack is referred to as a transparency group. With a stack of transparent images, the final colors shown are the result of blending the colors of all of the overlapping objects. Flatten Transparency merges a stack of transparent objects or graphics into a single image on the PDF page.

Flattening images in a PDF file is generally necessary before you can send the document to a printer. The flattening process simplifies the PDF file and may make it smaller as well.

**Referenced by:** [`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md)

**Uses types:** [`FlattenerColorCompression`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/FlattenerColorCompression.md), [`FlattenerGrayCompression`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/FlattenerGrayCompression.md), [`FlattenerMonoCompression`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/FlattenerMonoCompression.md), [`FlattenerQualitySetting`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/FlattenerQualitySetting.md)

## Constructors

### FlattenTransparencyParams

```csharp
Datalogics.PDFL.FlattenTransparencyParams.FlattenTransparencyParams()
```

*constructor*

Set up default parameters for flattening transparency.

Defaults: UseTextOutlines = false, ConvertStrokesToOutlines = true, ClipComplexRegions = false, InternalDPI = 800, ExternalDPI = 200, PreserveOverprint = true, Quality = 100.

### FlattenTransparencyParams

```csharp
Datalogics.PDFL.FlattenTransparencyParams.FlattenTransparencyParams(bool UseTextOutlines, bool ConvertStrokesToOutlines, bool ClipComplexRegions, int InternalDPI, int ExternalDPI, bool PreserveOverprint, int Quality)
```

*constructor*

**Parameters**

- `UseTextOutlines` (`bool`): If true, output text outlines instead of native text.
- `ConvertStrokesToOutlines` (`bool`): If true, convert strokes to outlines.
- `ClipComplexRegions` (`bool`): If true, ensure that boundaries between vector and rasterized artwork fall along object paths.
- `InternalDPI` (`int`): Resolution for flattening the interior of an atomic region. Range is 1 to 9600.
- `ExternalDPI` (`int`): Resolution for flattening edges of atomic regions. Range is 1 to 1200.
- `PreserveOverprint` (`bool`): If true, attempt to preserve overprint.
- `Quality` (`int`): The percentage of vector information that is to be preserved. Lower values will cause higher rasterization of vectors. Range is 0 to 100.

Set up parameters for flattening transparency.

## Properties

### ClipComplexRegions

```csharp
bool Datalogics.PDFL.FlattenTransparencyParams.ClipComplexRegions { get; set; }
```

If true, ensure that boundaries between vector and rasterized artwork fall along object paths.

### ColorCompressionScheme

```csharp
FlattenerColorCompression Datalogics.PDFL.FlattenTransparencyParams.ColorCompressionScheme { get; set; }
```

The compression scheme used for flattened color images. Default to JPEGCompression.

### ColorImageQuality

```csharp
FlattenerQualitySetting Datalogics.PDFL.FlattenTransparencyParams.ColorImageQuality { get; set; }
```

Quality Setting for Flattened JPEG and JPEG2000 colored Images. This is valid only if the value of ColorCompressionScheme is equal to JPEGCompression or JPEG2000Compression Default value: High

### ConvertStrokesToOutlines

```csharp
bool Datalogics.PDFL.FlattenTransparencyParams.ConvertStrokesToOutlines { get; set; }
```

If true, convert strokes to outlines.

### ExternalDPI

```csharp
int Datalogics.PDFL.FlattenTransparencyParams.ExternalDPI { get; set; }
```

Resolution for flattening edges of atomic regions. Range is 1 to 1200.

### GrayCompressionScheme

```csharp
FlattenerGrayCompression Datalogics.PDFL.FlattenTransparencyParams.GrayCompressionScheme { get; set; }
```

The compression scheme used for flattened gray images. Default to GrayJPEGCompression.

### GrayImageQuality

```csharp
FlattenerQualitySetting Datalogics.PDFL.FlattenTransparencyParams.GrayImageQuality { get; set; }
```

Quality Setting for Flattened JPEG and JPEG2000 gray Images. This is valid only if the value of GrayCompressionScheme is equal to GrayJPEGCompression or GrayJPEG2000Compression Default value: High

### InternalDPI

```csharp
int Datalogics.PDFL.FlattenTransparencyParams.InternalDPI { get; set; }
```

Resolution for flattening the interior of an atomic region. Range is 1 to 9600.

### MaxPageFlatteningTime

```csharp
int Datalogics.PDFL.FlattenTransparencyParams.MaxPageFlatteningTime { get; set; }
```

The maximum allowed time that will be spent flattening a single page. A value less than zero will disable the time limit. A value equal to 0 (default) will set the limit to 120 seconds. A value greater than 0 will set the allowed limit (in seconds). Any value less than 60 seconds will be increased to 60 seconds.

### MonoCompressionScheme

```csharp
FlattenerMonoCompression Datalogics.PDFL.FlattenTransparencyParams.MonoCompressionScheme { get; set; }
```

The compression scheme used for flattened monochrome images. Default to MonoCCITTGroup4Compression.

### PreserveOverprint

```csharp
bool Datalogics.PDFL.FlattenTransparencyParams.PreserveOverprint { get; set; }
```

If true, attempt to preserve overprint.

### ProfileDescription

```csharp
string Datalogics.PDFL.FlattenTransparencyParams.ProfileDescription { get; set; }
```

The Page Level Transparency Blending ColorSpace Profile Description.

### Quality

```csharp
int Datalogics.PDFL.FlattenTransparencyParams.Quality { get; set; }
```

The percentage of vector information that is to be preserved. Lower values will cause higher rasterization of vectors. Range is 0 to 100.

### UseTextOutlines

```csharp
bool Datalogics.PDFL.FlattenTransparencyParams.UseTextOutlines { get; set; }
```

If true, output text outlines instead of native text.

## Methods

### Dispose

```csharp
void Datalogics.PDFL.FlattenTransparencyParams.Dispose()
```

**Returns:** `void`
