---
title: "Class PdfImageCompressor | Customer&#x27;s Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Rendering/PdfImageCompressor/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
    entity_id: "https://customerscanvas.com/glossary/customers-canvas-on-premises#software-application"
  - product: "Design Atoms .NET"
    versions: ["7.4"]
    entity_id: "https://customerscanvas.com/glossary/design-atoms-net#software-application"
---

# Class PdfImageCompressor

**Applies to:** Customer's Canvas On-Premises; Design Atoms .NET 7.4

> Class PdfImageCompressor in the Aurigma.DesignAtoms.Rendering namespace.

**Namespace**: [Aurigma.DesignAtoms.Rendering](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Rendering.md)

**Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public class PdfImageCompressor
```

**Inheritance:** `System.Object` -> PdfImageCompressor

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### PdfImageCompressor

```csharp
public PdfImageCompressor(CompressionType compression, int? jpegQuality)
```

## Properties

### IsJpeg

```csharp
public bool IsJpeg { get; }
```

## Methods

### Compress

```csharp
public CompressedImage Compress(Pipeline pipeline)
```

#### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Pipeline` | *pipeline* |  |

#### Returns

`Aurigma.GraphicsMill.CompressedImage`
