Do you own a Quick PDF Library 7 or iSEDQuickPDF license? Upgrade to Quick PDF Library 8 today!

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.


© 2011 Debenu. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum