__init__ constructor
Leave feedback
On this page
Initializes default values of MaxResolution option to 300 and ImageQuality option to 100.
For details and code samples, see https://docs.groupdocs.com/viewer/net/optimization-pdf-options/ and its children.
def __init__(self):
...
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PdfViewOptions, PdfOptimizationOptions
with Viewer("sample.docx") as viewer:
view_options = PdfViewOptions("optimized.pdf")
view_options.pdf_optimization_options = PdfOptimizationOptions()
viewer.view(view_options)
- class
PdfOptimizationOptions
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.