Simon
Simon

Reputation: 61

Reduce filesize of pdf

I have a pdf that is around 4MB in size. When I open it in Adobe Acrobat (version 8) and go to File -> Save as the resulting pdf is only 137KB.

This pdf is 67 pages big, each page looking very similar to the other, with only some numbers changed: same background, same fonts, almost same text, ... It has been created using Cete DynamicPDF Merger from individual pdf files.

What I think could be a possible cause are the fonts: when I check file->properties and look at the Fonts tab I see that the same font has been included multiple times in it. The new pdf that Acrobat saves only has that font once.

Is there a tool (preferably a .NET library) that would allow me to compress pdf's files like that one similar like Acrobat does?

Upvotes: 6

Views: 5802

Answers (2)

Archana Kamath
Archana Kamath

Reputation: 466

To reduce file size in Adobe acrobat itself please follow below steps:

Open the file in adobe acrobat Select File -> Save as and then save the file with different name. This worked for me. or you can try print options and save it.

If you have adobe sign in credentials then go to File -> Compress file option, once after login you can achieve it.

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1039150

You may try with iTextSharp. I've been using it for a long time and I'm satisfied 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();
}

Upvotes: 1

Related Questions