Print Page | Close Window

Compress PDF 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=2164
Printed Date: 12 Jun 25 at 10:11AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Compress PDF files
Posted By: Gerard
Subject: Compress PDF files
Date Posted: 20 Feb 12 at 5:59PM
Hi,

I need to compress a exiting PDF file, somebody have try that before
I try that:

                InputFileName = "A.PDF"
                OutputFileName = "B.PDF"
                iRet = QuickPDFLoadFromFile(InstanceID,InputFileName)
                iRet = QuickPDFSelectDocument(InstanceID,DocumentID)
                iRet = QuickPDFCompressContent(InstanceID)
                iRet = QuickPDFCompressFonts(InstanceID,1)
                iRet = QuickPDFCompressImages(InstanceID,1)
                iRet = QuickPDFSetJPEGQuality(InstanceID,50)
                iRet = QuickPDFSaveToFile(InstanceID,OutputFileName)

But that change nothing Cry same size, if I try with some utility found on the web I can cut by 50% the size of the files.

If someone have idea to point me in the correct direction.

Regard

Gerard



Replies:
Posted By: Ingo
Date Posted: 20 Feb 12 at 7:04PM
Hi Gerard!

You can use the compress functions
while creating a new pdf not on an
existing one.

Cheers, Ingo



Posted By: AndrewC
Date Posted: 22 Feb 12 at 2:49PM
The type of compression you are talking about requires resampling the images from say 300 dpi down to 100 dpi and resaving the PDF.  Currently we don't have such a feature in Quick PDF Library.


Andrew.



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