Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Temporary License
GroupDocs.Viewer for Python via .NET is a document rendering API that renders 190+ file formats, including Word, Excel, PowerPoint, PDF, CAD drawings, email and archives, to HTML, PDF, PNG or JPEG, with no Microsoft Office or other external software required.
- 190+ Formats: Render Microsoft Office, PDF, CAD, email, archives, images, and more.
- Multiple Outputs: Render to HTML with embedded or external resources, PDF, PNG, or JPEG.
- Rendering to Memory: Write pages and resources to
BytesIOobjects instead of files. - Page Control: Render all pages, a selection, or a new order, and cancel a long render.
- Document Inspection: Read the format, pages, layers, and attachments without rendering.
- Browser Viewer: Open a document or a folder in the browser with the
groupdocs-viewercommand. - On-Premise: No MS Office or internet connection required.
GroupDocs.Viewer for Python via .NET supports a wide range of file formats, including Word, Excel, PowerPoint, PDF, Visio, Project, CAD, Email, Images, Archives, eBooks, Web, and many others. See the full list of supported formats for details.
-
Set Up Environment: Ensure that Python 3.6+ is installed on your system. The package itself supports Python 3.5-3.14; the examples use f-strings and need 3.6+.
-
Get the Code: Clone or download this repository.
git clone git@github.com:groupdocs-viewer/GroupDocs.Viewer-for-Python-via-.NET.git
-
Navigate to the
ExamplesFoldercd ./GroupDocs.Viewer-for-Python-via-.NET/Examples -
Install Package: install dependencies with pip:
pip install -r requirements.txt
Alternatively, download the platform-specific
.whlfile from the GroupDocs Releases website (win_amd64,manylinux*_x86_64,macosx_*_arm64,macosx_*_x86_64) andgroupdocs_shared_net-26.11.0-py3-none-any.whlfrom PyPI into one folder, for examplewheels, and install both from there:pip install --no-index --find-links ./wheels groupdocs-viewer-net
-
Configure License (Optional):
run_all_examples.pyapplies a license automatically when theGROUPDOCS_LIC_PATHenvironment variable holds the absolute path of your.licfile.With a license applied, examples run with the full feature set; without one, only the first two pages of a document are rendered, and each rendered page carries an evaluation notice. Get a free 30-day temporary license for evaluation.
-
Run the Examples: To run all the examples, execute the following command:
python ./run_all_examples.py
You can also run individual examples by navigating to the folder containing the example script and running it. Output files are placed in the same folder as the script file.
The repository ships a Dockerfile that builds a Linux image with Python 3.13, the system packages the examples need (libicu-dev, libfontconfig1, ttf-mscorefonts-installer), and the groupdocs-viewer-net package preinstalled.
# Build the image
docker build -t viewer-examples .
# Run unlicensed (evaluation mode)
docker run --rm viewer-examples
# Run with a license mounted from the host
docker run --rm \
-v /path/to/license:/lic:ro \
-e GROUPDOCS_LIC_PATH=/lic/your-license.lic \
viewer-examplesOn Windows with Git Bash, set export MSYS_NO_PATHCONV=1 before docker run to prevent MSYS from rewriting the mounted license path.
The groupdocs-viewer-net wheel ships a bundled AGENTS.md reference for AI coding assistants (Claude Code, Cursor, GitHub Copilot in agent mode, and similar). Once the package is installed, the reference is discovered automatically at groupdocs/viewer/AGENTS.md — it covers canonical imports, quick-start usage, licensing, the API surface table, and troubleshooting.
For on-demand documentation lookups, combine the bundled AGENTS.md with the GroupDocs MCP server at https://docs.groupdocs.com/mcp. See the AI agents and LLM integration page for the per-tool setup snippets.
For an agent that works with documents itself, rather than writing code, the GroupDocs.Viewer MCP server runs locally, with nothing uploaded.
The .github/workflows/ directory contains the CI matrix that runs the full example suite on every push. The matrix is reproducible locally via the Dockerfile above.
Find additional details and examples in the GroupDocs.Viewer for Python via .NET documentation.
We also offer GroupDocs.Viewer packages for other platforms:
Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Temporary License
