Reducing PDF file Size

PDF-XChange Editor SDK for Developers

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

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: 854
Joined: Wed Sep 30, 2009 6:53 pm

Reducing PDF file Size

Post by jeffp » Fri Apr 27, 2018 9:27 pm

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

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

Re: Reducing PDF file Size

Post by Sasha - Tracker Dev Team » Sat Apr 28, 2018 6:59 am

Hello Jeff,

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

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

jeffp
User
Posts: 854
Joined: Wed Sep 30, 2009 6:53 pm

Re: Reducing PDF file Size

Post by jeffp » Sun Apr 29, 2018 12:57 am

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

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

Re: Reducing PDF file Size

Post by Sasha - Tracker Dev Team » Mon Apr 30, 2018 7:37 am

Hello Jeff,

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

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply