Reduce pdf file size

I have a PDF about 4 MB in size. When I open it in Adobe Acrobat (version 8) and go to File → Save, since the resulting pdf is only 137 KB.

This pdf file has 67 pages, each page looks very similar to the other, but with some numbers: the same background, the same fonts, almost the same text ... It was created using Cete DynamicPDF Merger from separate PDF files.

What, in my opinion, may be a possible reason are fonts: when I check the properties of file-> and look at the Fonts tab, I see that the same font has been included several times in it. A new PDF file that only Acrobat saves has only this font.

Is there a tool (preferably the .NET library) that will allow me to compress pdf files similar to what is similar to Acrobat?

+5
source share
1 answer

You can try it with iTextSharp . I have been using it for a long time and I am pleased with the resulting PDF size:

Document.Compress = true;
var reader = new PdfReader("input.pdf");
using (var output = File.OpenWrite("output.pdf"))
{
    new PdfStamper(reader, output).Close();
}
+1
source

All Articles