for_jpg_view method
Leave feedback
On this page
Initializes a ViewInfoOptions instance to retrieve information about view when rendering into JPG.
def for_jpg_view(cls):
...
Returns: A new ViewInfoOptions instance.
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import ViewInfoOptions
def get_jpg_view_info():
with Viewer("sample.pdf") as viewer:
info = viewer.get_view_info(ViewInfoOptions.for_jpg_view())
print("Document type:", info.file_type)
print("Pages count:", len(info.pages))
if __name__ == "__main__":
get_jpg_view_info()
Initializes a ViewInfoOptions instance for retrieving view information when rendering to JPG.
def for_jpg_view(cls, extract_text):
...
| Parameter | Type | Description |
|---|---|---|
| extract_text | bool |
Enables text extraction. |
Returns: ViewInfoOptions: New instance of the ViewInfoOptions class.
- class
ViewInfoOptions
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.