Print Page | Close Window

Shrinking large files?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2646
Printed Date: 14 Jan 26 at 8:06PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Shrinking large files?
Posted By: greenley
Subject: Shrinking large files?
Date Posted: 17 May 13 at 7:25PM
I create a rather large report 170+ pages using 8.13, when I SaveToFile it is 17.3 megs. If I open this file in acrobat and saveToFile it shrinks to about 355k. How can I get this smaller file size from quickPDF? I have tried  CompressFonts(1), CompressImages(1), and CompressContent(), and they did not make a significant size difference? I can provide sample if desired.
Bill Greenley



Replies:
Posted By: greenley
Date Posted: 17 May 13 at 7:33PM
should say 9.13 not 8.13


Posted By: Ingo
Date Posted: 17 May 13 at 7:38PM
Hi Bill!

The Compress-functions often don't have much effect. If the fonts are not embedded and if the images are jpg (already compressed) ... the compress results are rather less.
Try to change your creation process. Try ClonePages. If it's possible to use for you this would have much more effect.

Cheers, Ingo


Posted By: greenley
Date Posted: 17 May 13 at 7:49PM
Looking at the code again with clone in mind, I noticed a added the header picture every time I drew it.
 
            QP2.AddImageFromFile(L"BCBSM_BCN.jpg",0);
            QP2.DrawImage(13,13,150,53.75);  //  topleft, topright, width, height
 
I removed the add image from all accept the first, and now my file size is 1.88 meg which works. I never thought about the image buffer already holding the previously added image. Thanks for help.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk