PdfOptions class
Leave feedback
On this page
Represents options for rendering to PDF documents.
For details, see the documentation.
The PdfOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the PdfOptions class. |
| Property | Description |
|---|---|
| disable_chars_grouping | The property disables symbol grouping for precise symbol positioning during page rendering. |
| disable_copy_protection | The property disables content copy protection when rendering to HTML. |
| disable_font_license_verifications | The property disables any license restrictions for all fonts in the current XPS/OXPS document. |
| enable_font_hinting | The property enables font hinting. |
| enable_layered_rendering | The property enables rendering text and graphics in the original PDF document’s z-order when rendering to HTML. |
| fixed_layout | The fixed layout option enables rendering PDF and EPUB documents to HTML with a fixed layout. |
| image_quality | The output image quality for image resources when rendering to HTML. The default quality is ImageQuality.LOW. |
| render_original_page_size | The output page size is set to match the source PDF document’s page size. |
| render_text_as_image | The option enables rendering texts in PDF files as an image in the HTML output. |
| wrap_images_in_svg | The property that enables wrapping each image in the output HTML document in an SVG tag to improve output quality. |
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PngViewOptions
with Viewer("sample.pdf") as viewer:
view_options = PngViewOptions("output_{0}.png")
# Enable font hinting when rendering PDF pages to images.
view_options.pdf_options.enable_font_hinting = True
viewer.view(view_options)
- module
groupdocs.viewer.options
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.