Optimize the size and structure of 100+ file types in your application using C#. Leverage an industry-leading compression engine that uses adaptive document learning and compression algorithms to significantly reduce the size of your files. Integrate a solution that focuses on removing unwanted or unused content, optimizing fonts, image analysis, data compressions, and document linearization. Explore our guides and code samples to learn how you can optimize documents in your workflows.

Quick start: One-call PDF optimization

If you want a minimal optimization workflow, you can run document reduction in a single call:

using GdPicture14;
LicenseManager licence = new LicenseManager();
licence.RegisterKEY("");
GdPicturePDFReducer PDFReducer = new GdPicturePDFReducer();
PDFReducer.ProcessDocument(@"input_large.pdf", @"output.pdf");

This is a good default for reducing file size quickly. For fine-grained control over metadata, image recompression, font packing, and content removal, use the Compress guide below.

Key capabilities

  • Compression algorithms — Combines several compression algorithms to improve results
  • Classification algorithm — Utilizes adaptive document learning algorithms to classify content
  • Content removal — Removes redundant, unwanted, or unused objects (blank pages, metadata, etc.)
  • Font optimization — Font data stream compression, font data table reduction, font merging, and more
  • Image optimization — Automatic image recompression and high-quality image downscaling
  • Advanced image compression — Supports MRC, color detection, JBIG2 encoding, and more
  • Linearization — Optimize PDF documents to load faster

Guides for optimization

Compress
Learn how to compress PDFs and images

Hyper-compress (MRC)
Learn how to hyper-compress PDFs and images