View as MarkdownMarkdown
If the output PDF file contains images, you can reduce its resolution.
To allow changing the image resolution, set the setCompressImages() and setResizeImages() setters to true in the PdfOptimizationOptions. The GroupDocs.Viewer compresses all images in the file. The setMaxResolution() property determines the maximum resolution.
The following code snippet shows how to reduce image resolution in the file:
The following image demonstrates the result:

We value your opinion. Your feedback will help us improve our documentation.