Hello,
Hi Benjamin,
//
Load the source PDF file<o:p></o:p>
Document doc = new Document("c:/pdftest/images.pdf");
doc.OptimizeResources(new Document.OptimizationOptions()
{
CompressImages = true,
ImageQuality = 100,
RemoveUnusedObjects = true,
LinkDuplcateStreams = true,
AllowReusePageContent = true,
RemoveUnusedStreams = true
});
doc.Save("c:/pdftest/OptimizedFile.pdf");
Hello Nayyer,
Hi Benjamin,
Hi Benjamin,
DownsampleImages |
Specifies whether images should be downsampled. |
Resolution |
Specifies the resolution in pixels per inch which the images should be downsampled to. |
ResolutionThreshold |
Specifies the threshold resolution in pixels per inch. If resolution of an image in the document is less than threshold value, the downsampling algorithm will not be applied. A value of 0 means the threshold check is not used and all images that can be reduced in size are downsampled. |