Hi everyone,

We continue our PDF Optimization series (started with two articles about fonts, Pack and Optimize Fonts in PDF and Fonts Optimization in PDF with a broader overview of what you can do to optimize PDFs.

It’s not news, electronic documents are everywhere.
Electronic invoices in PDF format, for example, represent the most considerable amount of circulated materials together with many other documents designated to archive. All of them need to be stored. As we like to say, storage space is like the air we breathe, and it will be given a real value when we will be threatened to miss it.

So, the time has come to offer within the GdPicture.NET toolkit a super-fast and powerful PDF compression tool. It can help anyone to get existing PDF files reduced up to 80% more than concurrent products.
Let’s say welcome to GdPicture.NET PDF Reducer SDK!

PDF Reducer SDK

The newly introduced GdPicturePDFReducer class provides innovative and highly sophisticated techniques based on ten years of continuous research. With the help of PDFReducerConfiguration class, you can optionally apply selected features to address all areas of compression and optimization, with a focus on font optimization, data compression, and image analysis.

Optimizing PDF documents in general

The usage is effortless and straightforward. Here is how it looks like:

//basic example of usage - code block
GdPicturePDFReducer gdpicturePDFReducer = new GdPicturePDFReducer();

//PDFReducerConfiguration class provides different properties and useful options.
gdpicturePDFReducer.PDFReducerConfiguration.Author = "GdPicture.NET PDF Reducer SDK";
gdpicturePDFReducer.PDFReducerConfiguration.ProducerName = "Orpalis";
gdpicturePDFReducer.PDFReducerConfiguration.Title = "Sample document";

//When compressing your PDF files, you have the possibility to decide which version of PDF to use.
gdpicturePDFReducer.PDFReducerConfiguration.OutputFormat = PDFReducerPDFVersion.PdfVersionRetainExisting;

//By selecting required options through the PDFReducerConfiguration class, you enable or disable the features you want to accent, for example:
//Greatly optimizes the output file size by focusing on fonts.

gdpicturePDFReducer.PDFReducerConfiguration.PackFonts = true;

//Packing the document content before saving.
gdpicturePDFReducer.PDFReducerConfiguration.PackDocument = true;

//Processing the specified document.
GdPictureStatus status = gdpicturePDFReducer.ProcessDocument("input.pdf", "output.pdf");

See it in the documentation