Initializes an instance of the ViewInfoOptions class to retrieve information about view when rendering into PNG.
deffor_png_view(cls):...
Returns: ViewInfoOptions: New instance of the ViewInfoOptions class.
Example
fromgroupdocs.viewerimportViewerfromgroupdocs.viewer.optionsimportViewInfoOptions# Create view info options for PNG formatview_info_options_png=ViewInfoOptions.for_png_view()# Load a document and get view information for PNGwithViewer("sample.xml")asviewer:result_png=viewer.get_view_info(view_info_options_png)
for_png_view
Initializes an instance of the ViewInfoOptions class to retrieve information about view when rendering into PNG.
deffor_png_view(cls,extract_text):...
Parameter
Type
Description
extract_text
bool
Enables text extraction.
Returns: ViewInfoOptions: New instance of the ViewInfoOptions class.
Example
fromgroupdocs.viewer.optionsimportViewInfoOptions# Create view info options for PNG format with text extraction enabledoptions=ViewInfoOptions.for_png_view(extractText=True)