Frequently Asked Question:
Resampling a PDF to reduce file size
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);
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.