Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Compress PDF files
  FAQ FAQ  Forum Search   Register Register  Login Login

Compress PDF files

 Post Reply Post Reply
Author
Message
Gerard View Drop Down
Beginner
Beginner
Avatar

Joined: 22 Feb 07
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gerard Quote  Post ReplyReply Direct Link To This Post Topic: Compress PDF files
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store