VisioRenderingOptions class

VisioRenderingOptions class

Represents options for rendering Visio documents.

For details, see the documentation.

The VisioRenderingOptions type exposes the following members:

Constructors

Constructor Description
init Initializes an instance of the VisioRenderingOptions class.

Properties

Property Description
figure_width The figure width; height is calculated automatically. Default value is 100.
render_figures_only The property renders only Visio figures, not a diagram.

Example

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PdfViewOptions

def render_visio_shapes_only():
    # Load Visio document
    with Viewer("map.vsdx") as viewer:
        # Convert the Visio file to PDF.
        view_options = PdfViewOptions("render_visio_shapes_only/visio_shapes_only.pdf")
        # Render only the master shapes.
        view_options.visio_rendering_options.render_figures_only = True
        # Specify shape width in pixels.
        view_options.visio_rendering_options.figure_width = 200
        viewer.view(view_options)

if __name__ == "__main__":
    render_visio_shapes_only()

See Also