Print Page | Close Window

Reducing PDF File Size

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=792
Printed Date: 10 May 24 at 1:38AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Reducing PDF File Size
Posted By: jose.cavalcanti
Subject: Reducing PDF File Size
Date Posted: 26 Sep 07 at 6:55PM
Hi, how can I reduce PDF file size as in Adobe Acobat 8 Professional Document/Reducing File Size...?
 
Regards,



Replies:
Posted By: Ingo
Date Posted: 27 Sep 07 at 2:25AM
Hi Jose!

With QuickPDF there are several functions which can help (one can help more and one can help less ;-)

Have a look at:
SetPrecision
CompressContent
CompressPage
CompressFonts
CompressImages

Here you can get the Reference Guide:
http://www.quickpdf.org/download/iSEDQuickPDF 5.11 Reference Guide.zip

Best regards,
Ingo


Posted By: jose.cavalcanti
Date Posted: 28 Sep 07 at 5:33PM
Did not work.
I think that Iīll have to use Adobe Acrobat SDK.
 
Look at the test code. Itīs easy to understand.Wink
 

LOCAL lcLicenseKey, loQuickPDF, lcFileNameSource, lcFileNameTarget

lcLicenseKey = "MyLicenseKey"

loQuickPDF = CreateObject("ISED.QuickPDF")

loQuickPDF.UnlockKey(lcLicenseKey)

lcFileNameSource = "C:\DJESP.PDF"

lcFileNameTarget = "C:\DJESP_A.PDF"

= loQuickPDF.LoadFromFile(lcFileNameSource)

= loQuickPDF.SetPrecision(2)

= loQuickPDF.CompressContent()

= loQuickPDF.CompressPage()

= loQuickPDF.CompressFonts(1)

= loQuickPDF.CompressImages(1)

loQuickPDF.SaveToFile(lcFileNameTarget)

RETURN

 
 


Posted By: Ingo
Date Posted: 28 Sep 07 at 7:13PM
Hi!

It's not so easy like you has thought ;-)
CompressImage for example should be called before inserting a new image into the pdf document. The other functions doesn't work as easy as you has thought, too. The time when to use the functions is essential.

Perhaps someone can tell this more detailed.

Best regards,
Ingo



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