GroupDocs.Viewer for Python via .NET is a high-performance document rendering library that lets you view 190+ file formats — including DOCX, XLSX, PPTX, PDF, CAD drawings, emails, archives, and images — by rendering them to HTML, PDF, PNG, or JPG, to files or to memory. No third-party software required, and the groupdocs-viewer command opens documents in your browser.
Quick example
fromgroupdocs.viewerimportViewerfromgroupdocs.viewer.optionsimportHtmlViewOptions# Render a DOCX file to HTML with embedded resourceswithViewer("sample.docx")asviewer:viewer.view(HtmlViewOptions.for_embedded_resources("page_{0}.html"))
sample.docx is the sample file used in this example. Click here to download it.
For practical code examples and explanations of basic and advanced rendering functions, see the Developer Guide section. This guide includes instructions on loading documents, retrieving document metadata, and performing document rendering.
AI Agents & LLM Integration
Using an AI coding assistant? The AI Agents & LLM Integration page covers the bundled AGENTS.md reference, the GroupDocs MCP servers, and machine-readable documentation. SDK, Cloud or MCP? compares the ways to render documents from Python.
Technical Support
If you experience any issues or have suggestions, please refer to the Technical Support topic. This topic provides multiple support channels tailored to your needs.
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.
On this page
Ask AI
Ask anything about this page — the answer is based on its content.
Searching the docs and writing an answer…
Something went wrong while getting an answer. Please try again in a moment.