If the output PDF file contains images, you can reduce its resolution.
To allow changing the image resolution, set the compress_images and resize_images properties to True. The GroupDocs.Viewer compresses all images in the file. The max_resolution property determines the maximum resolution.
The following code snippet shows how to reduce image resolution in the file: