---
title: "Optimizing PDFs | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/optimization/pdf-optimization/"
md_url: "https://www.nutrient.io/guides/dotnet/optimization/pdf-optimization.md"
last_updated: "2026-05-28T01:45:39.254Z"
description: "How to optimize PDFs using Nutrient .NET SDK."
---

# Optimizing PDFs

PDF optimization reduces file size while preserving document readability and layout. This helps when you store large archives, share documents over the network, or publish PDFs for download.

This guide shows how to:

- Initialize the SDK

- Create a PDF reducer

- Process an input PDF into an optimized output PDF

## Prepare the project

Register the SDK license before running optimization. For setup details, refer to the [getting started with.NET SDK](https://www.nutrient.io/sdk/dotnet/getting-started.md) guide.

```csharp

using GdPicture14;

LicenseManager licence = new LicenseManager();
licence.RegisterKEY(""); // Set your license key

```

## Create the PDF reducer

Instantiate `GdPicturePDFReducer`:

```csharp

GdPicturePDFReducer PDFReducer = new GdPicturePDFReducer();

```

## Optimize the PDF

Process the input file and write the optimized output:

```csharp

PDFReducer.ProcessDocument(@"input_large.pdf", @"output.pdf");

```

`ProcessDocument` analyzes the source file and applies supported reduction steps to lower file size.

## Conclusion

This workflow creates a smaller PDF from a larger source document by running PDF reduction on the input file.
---

## Related pages

- [Flatten PDFs in C# .NET](/guides/dotnet/optimization/flatten.md)
- [MRC compression in C#](/guides/dotnet/optimization/hyper-compress-mrc.md)
- [Image and PDF compression in C#](/guides/dotnet/optimization/compress.md)
- [Optimize PDFs using C#](/guides/dotnet/optimization.md)
- [Linearize PDFs in C# .NET](/guides/dotnet/optimization/linearize.md)
- [MRC PDF optimization](/guides/dotnet/optimization/pdf-optimization-mrc.md)

