Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Resampling a PDF to reduce file size

Question

I have searchable color PDF files which I would like to reduce the file size for. The files were scanned and then OCRed. Can you please advise how I would go about reducing the file size? I am hoping to reduce the size by specifying a low jpeg quality. I have tried the following but the size doesn't change. SetJPEGQuality returns 1 which indicates the method was successful.

 int docID = qp.LoadFromFile(fileName);
 qp.SetJPEGQuality(2);
 qp.SaveToFile(OutputFile);
Answer

Quick PDF does not support resampling of JPEG images. I beleive you would require a separate program to perform this function.

SetJPEGQuality only affects the output of the RenderTo...() functions that save their output to JPEG files.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum