Reducing PDF file Size

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Reducing PDF file Size

Post by jeffp »

I have a customer who receives PDFs from a third party. These PDFs are essentially scanned images. The PDF file sizes are quite large. Is there a way to open one of these PDFs and make some setting changes (like with compression, etc), and then save it out again with a smaller size?

Printing the PDF file to PDF using your Lite driver seems to reduce the size a bit. I typically don't like recommending printing to PDF a file that is already a PDF but it does seem to work a bit. If this is an option, are there additional compression options in your non-Lite, Standard PDF driver that would work even better.

Or is the are better way to do this altogether?

Thanks.

--Jeff
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Reducing PDF file Size

Post by Sasha - Tracker Dev Team »

Hello Jeff,

Try using this operation:
https://sdkhelp.pdf-xchange.com/vi ... t_optimize
Also, to use it, the optimizer plugin should be added before the Control initialization.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Reducing PDF file Size

Post by jeffp »

This is a big document so when I call pOp.Do_(0); it takes a long time. As such, is there a way to add a progress event so I can display what's going on.

--Jeff
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Reducing PDF file Size

Post by Sasha - Tracker Dev Team »

Hello Jeff,

Use this method instead of Do():
https://sdkhelp.pdf-xchange.com/vi ... tForFinish

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply