Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

GroupDocs.Viewer for Python via .NET Downloads

banner

PyPI PyPI - Python Version

Product Page | Docs | Demos | API Reference | Blog | Free Support | Temporary License

GroupDocs.Viewer for Python via .NET is a document rendering API that displays 190+ file formats — DOCX, PDF, XLSX, PPTX, CAD drawings, email messages, archives, and more — as HTML, PNG, JPG, or PDF. It preserves layout and formatting while offering per-format rendering options.

Get Started

pip install groupdocs-viewer-net
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import HtmlViewOptions

with Viewer("document.docx") as viewer:
    options = HtmlViewOptions.for_embedded_resources("page_{0}.html")
    viewer.view(options)

How It Works

The package is a self-contained Python wheel (~160 MB) that includes everything needed to render documents. No external software installation is required — just pip install and start viewing. The wheel works across Python 3.5 – 3.14 on Windows, Linux, and macOS (Intel + Apple Silicon).

Features

  • Wide Format Support: 190+ file formats across Microsoft Office, PDF, images, CAD, email, and archives.
  • Flexible Output: Render to HTML (embedded or external resources), PNG, JPG, or PDF.
  • Page Control: Render whole documents, selected pages, page ranges, or reordered pages.
  • Custom Streams: Route each page or resource to a Python-provided stream factory — no disk writes required.
  • Cross-Platform: Windows x64/x86, Linux x64, macOS x64/ARM64.

Common Tasks

  • Render DOCX, PDF, XLSX, or PPTX to HTML for an in-browser document viewer
  • Generate per-page PNG or JPG thumbnails and previews
  • Produce a print-ready PDF from any supported format
  • View CAD drawings (DWG, DXF) without AutoCAD
  • Display email messages (MSG, EML) together with their attachments
  • Render specific pages, page ranges, or reordered pages
  • Feed rendered HTML or page images into an AI / RAG document-preview pipeline

Supported File Formats

For a complete list, see supported formats.

  • Microsoft Office (Word, Excel, PowerPoint, Visio, Project, Outlook)
  • PDF (Standard PDFs, PDF/A)
  • OpenDocument (ODT, ODS, ODP)
  • Images (JPEG, PNG, TIFF, BMP, SVG, WebP, DICOM)
  • Email (EML, MSG, PST, OST)
  • eBook (EPUB, MOBI, AZW3)
  • Archives (ZIP, TAR, RAR, 7Z)
  • AutoCAD (DWG, DXF, DGN, IFC)
  • Web (HTML, MHTML, CHM, XML)

Platform & Format Support

Format familyWindowsLinux / macOS
Project Management (MPP, MPT, MPX)YesNo
All other formats (Office, PDF, Visio, CAD, images, email, archives, eBooks, web, …)YesYes

The Linux/macOS build uses GroupDocs.Viewer.CrossPlatform, which renders every format except the Project Management family (MPP, MPT, MPX) — render those on Windows. Everything else, including Visio, works on all platforms.

Examples

Render DOCX to HTML (embedded resources)

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import HtmlViewOptions

with Viewer("./document.docx") as viewer:
    viewer.view(HtmlViewOptions.for_embedded_resources("./out/page_{0}.html"))

Render selected pages to PNG

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PngViewOptions

with Viewer("./document.pdf") as viewer:
    viewer.view(PngViewOptions("./out/page_{0}.png"), page_numbers=[1, 3, 5])

Render with Advanced Options

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import HtmlViewOptions, LoadOptions, Watermark

load_options = LoadOptions()
load_options.password = "12345"

with Viewer("./protected.docx", load_options) as viewer:
    options = HtmlViewOptions.for_embedded_resources("./out/page_{0}.html")
    options.watermark = Watermark("CONFIDENTIAL")
    options.render_responsive = True
    viewer.view(options)

Get View Info

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import ViewInfoOptions

with Viewer("./document.pdf") as viewer:
    info = viewer.get_view_info(ViewInfoOptions.for_html_view())
    print(f"Pages: {len(info.pages)}")

Render from Stream / BytesIO

import io
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import HtmlViewOptions

with open("document.docx", "rb") as stream:
    with Viewer(stream) as viewer:
        viewer.view(HtmlViewOptions.for_embedded_resources("./out/page_{0}.html"))

buf = io.BytesIO(downloaded_bytes)
with Viewer(buf) as viewer:
    viewer.view(HtmlViewOptions.for_embedded_resources("./out/page_{0}.html"))

Render to Custom Streams (no disk writes)

import io
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import PngViewOptions

pages: dict[int, io.BytesIO] = {}
def create_page(page_number):
    pages[page_number] = io.BytesIO()
    return pages[page_number]

with Viewer("./document.docx") as viewer:
    viewer.view(PngViewOptions(create_page))
# pages now holds {1: <BytesIO>, 2: <BytesIO>, ...}

AI Agent & LLM Friendly

This package is designed for seamless integration with AI agents, LLMs, and automated code generation tools.

  • AGENTS.md in the package — AI coding assistants (Claude Code, Cursor, GitHub Copilot) auto-discover the API surface, usage patterns, and troubleshooting tips from the installed package
  • MCP server — connect your AI tool to GroupDocs documentation for on-demand API lookups:
    { "mcpServers": { "groupdocs-docs": { "url": "https://docs.groupdocs.com/mcp" } } }
    
  • Machine-readable docs — full documentation available as plain text for RAG and LLM context:
    • Single file: https://docs.groupdocs.com/viewer/python-net/llms-full.txt
    • Per page: append .md to any docs URL

Evaluation Mode

The API works without a license in evaluation mode with the following limitations:

  • A watermark is added to rendered output.
  • Only the first few pages are rendered.

To remove these limitations, apply a license or request a temporary license:

from groupdocs.viewer import License
License().set_license("path/to/license.lic")

Or set the environment variable (auto-applied at import):

export GROUPDOCS_LIC_PATH="path/to/license.lic"

Troubleshooting

IssuePlatformFix
System.Drawing.Common is not supportedLinux/macOSapt-get install libgdiplus (Linux) or brew install mono-libgdiplus (macOS)
Garbled text or missing fonts in rendered HTML/PDFLinuxapt-get install ttf-mscorefonts-installer fontconfig && fc-cache -f
The type initializer for 'Gdip' threw an exceptionmacOSbrew install mono-libgdiplus
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT errorsLinuxDo NOT set this variable. ICU must be available.

System Requirements

  • Python 3.5 - 3.14
  • Windows x64/x86, Linux x64, macOS x64/ARM64

More Resources

Also available for other platforms: .NET | Java | Node.js


Product Page | Docs | Demos | API Reference | Blog | Free Support | Temporary License


Direct Download

Icons

GroupDocs.Viewer.CrossPlatform for Python via .NET 26.5 Windows

Self-contained Python wheel of GroupDocs.Viewer.CrossPlatform 26.5 for Windows (x64). Compatible with Python 3.5-3.14. No external dependencies required. GroupDocs.Viewer for Python via .NET - Render 190+ file formats to HTML, PNG, JPG, or PDF.

Added: 21/5/2026 Downloads:

Download

File Size: 162.92MB

Icons

GroupDocs.Viewer.CrossPlatform for Python via .NET 26.5 Linux

Self-contained Python wheel of GroupDocs.Viewer.CrossPlatform 26.5 for Linux (x64). Compatible with Python 3.5-3.14. Requires libgdiplus, libfontconfig1, and fonts (e.g. ttf-mscorefonts-installer). GroupDocs.Viewer for Python via .NET - Render 190+ file formats to HTML, PNG, JPG, or PDF.

Added: 21/5/2026 Downloads:

Download

File Size: 169.39MB

Icons

GroupDocs.Viewer.CrossPlatform for Python via .NET 26.5 macOS arm64

Self-contained Python wheel of GroupDocs.Viewer.CrossPlatform 26.5 for macOS arm64 (Apple Silicon). Compatible with Python 3.5-3.14. Requires mono-libgdiplus (brew install mono-libgdiplus). GroupDocs.Viewer for Python via .NET - Render 190+ file formats to HTML, PNG, JPG, or PDF.

Added: 21/5/2026 Downloads:

Download

File Size: 169.19MB

Icons

GroupDocs.Viewer.CrossPlatform for Python via .NET 26.5 macOS amd64

Self-contained Python wheel of GroupDocs.Viewer.CrossPlatform 26.5 for macOS amd64 (Intel). Compatible with Python 3.5-3.14. Requires mono-libgdiplus (brew install mono-libgdiplus). GroupDocs.Viewer for Python via .NET - Render 190+ file formats to HTML, PNG, JPG, or PDF.

Added: 21/5/2026 Downloads:

Download

File Size: 171.55MB

Icons

GroupDocs.Viewer for Python via .NET 26.4 Windows

This is the GroupDocs.Viewer for Python via .NET 26.4 wheel file, built for Windows.

Added: 27/4/2026 Downloads:

Download

File Size: 162.91MB

Icons

GroupDocs.Viewer for Python via .NET 26.4 Linux

This is the GroupDocs.Viewer for Python via .NET wheel file, version 26.4, built for Linux.

Added: 27/4/2026 Downloads:

Download

File Size: 162.24MB

Icons

GroupDocs.Viewer for Python via .NET 26.4 macOS AMD64

This is the GroupDocs.Viewer for Python via .NET wheel file, built for macOS and targeting the AMD64 architecture (Intel Silicon).

Added: 27/4/2026 Downloads:

Download

File Size: 164.19MB

Icons

GroupDocs.Viewer for Python via .NET 26.4 macOS ARM64

This is the GroupDocs.Viewer for Python via .NET wheel file, built for macOS and targeting the ARM64 architecture (Apple Silicon).

Added: 27/4/2026 Downloads:

Download

File Size: 162.06MB

Icons

GroupDocs.Viewer for Python via .NET 25.12 for Linux (x64)

This wheel contains GroupDocs.Viewer for Python via .NET version 25.12, built for Linux and targeting the x64 architecture.

Added: 22/12/2025 Downloads:

Download

File Size: 159.13MB

Icons

GroupDocs.Viewer for Python via .NET 25.12 for Windows (x64)

This wheel contains GroupDocs.Viewer for Python via .NET version 25.12, built for Windows and targeting the x64 architecture.

Added: 22/12/2025 Downloads:

Download

File Size: 154.12MB

Icons

GroupDocs.Viewer for Python via .NET 25.12 for Windows (x86)

This wheel contains GroupDocs.Viewer for Python via .NET version 25.12, built for Windows and targeting the x86 architecture.

Added: 22/12/2025 Downloads:

Download

File Size: 149.86MB

Icons

GroupDocs.Viewer for Python via .NET 25.12 for macOS (x64)

This wheel contains GroupDocs.Viewer for Python via .NET version 25.12, built for macOS and targeting the x64 architecture.

Added: 22/12/2025 Downloads:

Download

File Size: 159.18MB

Icons

GroupDocs.Viewer for Python via .NET 25.12 for macOS (ARM64)

This wheel contains GroupDocs.Viewer for Python via .NET version 25.12, built for macOS and targeting the ARM64 architecture.

Added: 22/12/2025 Downloads:

Download

File Size: 154.87MB

Icons

GroupDocs.Viewer for Python via .NET 24.9 Windows x32

This wheel contains GroupDocs.Viewer version 24.9, compatible with Python 3 and optimized for Windows 32-bit systems.

Added: 25/9/2024 Downloads:

Download

File Size: 148.88MB

Icons

GroupDocs.Viewer for Python via .NET 24.9 Windows AMD64

This wheel contains GroupDocs.Viewer for Python via .NET version 24.9, built for Windows and targeting the AMD64 architecture.

Added: 25/9/2024 Downloads:

Download

File Size: 152.93MB

Icons

GroupDocs.Viewer for Python via .NET 24.9 MacOS ARM64

This wheel contains GroupDocs.Viewer for Python via .NET version 24.9 built for MacOS and targeting the ARM64 architecture.

Added: 25/9/2024 Downloads:

Download

File Size: 152.58MB

Icons

GroupDocs.Viewer for Python via .NET 24.7 MacOS ARM64

This wheel contains GroupDocs.Viewer for Python via .NET version 24.7, built for MacOS and targeting the ARM64 architecture.

Added: 4/7/2024 Downloads:

Download

File Size: 140.37MB

Icons

GroupDocs.Viewer for Python via .NET 24.7 Windows x32

This wheel contains GroupDocs.Viewer version 24.7, compatible with Python 3 and optimized for Windows 32-bit systems.

Added: 4/7/2024 Downloads:

Download

File Size: 137.56MB

Icons

GroupDocs.Viewer for Python via .NET 24.7 Windows AMD64

This wheel contains GroupDocs.Viewer for Python via .NET version 24.7, built for Windows and targeting the AMD64 architecture.

Added: 4/7/2024 Downloads:

Download

File Size: 142.53MB

Icons

GroupDocs.Viewer for Python via .NET 24.5 Windows AMD64

This wheel contains GroupDocs.Viewer for Python via .NET version 24.5, built for Windows and targeting the AMD64 architecture.

Added: 20/5/2024 Downloads:

Download

File Size: 87.79MB

Icons

GroupDocs.Viewer for Python via .NET 24.5.0 Windows x32

This wheel contains GroupDocs.Viewer version 24.5.0, compatible with Python 3 and optimized for Windows 32-bit systems.

Added: 17/5/2024 Downloads:

Download

File Size: 82.82MB