Skip to main content

GroupDocs.Viewer for Python via .NET is a document viewer API that supports over 180 file types and enables developers to easily render files to various formats, such as PDF, HTML, JPG, or PNG. With this API, you can seamlessly render a wide range of file types, including popular OpenDocument and Microsoft Office formats like DOCS, XLSX, and PPTX, as well as specialized CAD and graphic editor files like DWG, DXF, PSD, AI, and CDR. Supports Python 3.5 to 3.13 (Python <3.14).

Project description

GroupDocs.Viewer for Python via .NET Banner

Product Home | Docs | Live Demos | API Reference | Blog | Search | Free Support Forum | Temporary License

Table of Contents

About

GroupDocs.Viewer for Python via .NET is a document viewer API that supports over 180 file types and enables developers to easily render files to various formats, such as PDF, HTML, JPG, or PNG. With this API, you can seamlessly render a wide range of file types, including popular OpenDocument and Microsoft Office formats like DOCS, XLSX, and PPTX, as well as specialized CAD and graphic editor files like DWG, DXF, PSD, AI, and CDR. Supports Python 3.5 to 3.13 (Python <3.14).

Quick Example: Render DOCX to PDF

Use a few lines of Python code to render documents to PDF, HTML, or image formats:

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

# Instantiate a Viewer object and load a DOCX file
with Viewer("input.docx") as viewer:
    pdf_options = PdfViewOptions("output.pdf")
    # Save the DOCX file as PDF    
    viewer.view(pdf_options)

Key Features

GroupDocs.Viewer for Python via .NET provides a single, unified API for advanced document viewing and rendering:

  • Multi-format rendering – Render documents to PDF, HTML, PNG, JPEG and other formats with high fidelity, preserving original document structure, formatting, and layout.
  • Wide format support – View over 180 file types including PDF, Word, Excel, PowerPoint, Visio, CAD files, images, emails, and more without requiring the original applications.
  • Page-by-page rendering – Render documents page by page or as a single output file, with options to render specific page ranges for better performance.
  • Text extraction & coordinates – Extract text with coordinates from documents, enabling text search, highlighting, and annotation features in your applications.
  • Attachment handling – Process and render attachments embedded in documents such as email attachments, PDF attachments, and embedded files.
  • Cross-platform support – Work with documents on Windows, Linux and macOS using the .NET-powered rendering engine from your Python code.

Supported Document Formats

GroupDocs.Viewer for Python via .NET supports a wide range of document families including:

  • Word processing – DOC, DOCX, RTF, TXT, ODT and others
  • PDF & markup – PDF, HTML/MHTML, Markdown, XML
  • Spreadsheets – XLS, XLSX, ODS, CSV and related formats
  • Presentations – PPT, PPTX, ODP and similar formats
  • Email & notes – PST, OST, EML, MSG, ONE
  • eBooks & web content – EPUB, MOBI, AZW3, CHM, FB2
  • Images – JPEG, PNG, TIFF, GIF, BMP, SVG and more
  • CAD & 3D formats – DWG, DXF, DWF, STL, OBJ and others
  • Visio & diagrams – VSD, VSDX, VSS, VST and related formats

See the complete list of supported document formats.


Getting Started

Prerequisites

  • Python 3.5 to 3.13 (Python <3.14)
  • Windows, Linux, or macOS

Learn more about system requirements.

Installation

You can install GroupDocs.Viewer for Python via .NET from PyPI or download it from the official website.

Install from PyPI

pip install groupdocs-viewer-net

Upgrade to the latest version

pip install --upgrade groupdocs-viewer-net

Download from the official website

To download the GroupDocs.Viewer package for your operating system, please visit the official GroupDocs Releases website and choose the appropriate package based on your system's architecture.

Learn more about installation.


Use Cases

Beyond basic document rendering, here are the most common use cases for viewing and converting documents.

📁 Code Examples: For complete, runnable examples with sample files, check out the GroupDocs.Viewer for Python via .NET - Code Examples repository. See how to run code examples for more details.

Render Document to HTML

This example shows how to render a Word document to HTML format with embedded resources.

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

# Instantiate a Viewer object and load a DOCX file
with Viewer("input.docx") as viewer:
    html_options = HtmlViewOptions.for_embedded_resources("page_{0}.html")
    # Save the DOCX file as HTML    
    viewer.view(html_options)

Render Document to Images

This example shows how to render a document to PNG images, one image per page.

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

# Instantiate a Viewer object and load a DOCX file
with Viewer("input.docx") as viewer:
    png_options = PngViewOptions("page_{0}.png")
    # Save the DOCX file as PNG    
    viewer.view(png_options)

Get Document Information

This example shows how to retrieve document information such as file type, page count, and other properties.

from groupdocs.viewer import Viewer

# Instantiate a Viewer object and load a document
with Viewer("input.pdf") as viewer:
    # Get document info
    info = viewer.get_view_info()
    
    # Print document information
    print(f"File type: {info.file_type}")
    print(f"Pages count: {info.pages_count}")

Licensing

For testing without trial limitations, you can request a 30-day Temporary License:

  • Visit the Get a Temporary License page
  • Follow the instructions to request your temporary license
  • Copy the license file and apply it using the code example
import os
from groupdocs.viewer import License

# Get absolute path to license file
license_path = os.path.abspath("./GroupDocs.Viewer.lic")

# Instantiate License and set the license
license = License()
license.set_license(license_path)

This product is licensed under the GroupDocs End User License Agreement (EULA). For pricing information, visit the GroupDocs.Viewer for Python via .NET pricing page.


Support

GroupDocs provides unlimited free technical support for all of its products. Support is available to all users, including evaluation. The support is provided at Free Support Forum, Paid Support Helpdesk and Paid Consulting.

Free Support Forum

The GroupDocs Free Support Forum is available to all users and provides:

  • Direct access to the GroupDocs development team
  • Community-driven support and knowledge sharing
  • No time limitations on support requests
  • Access to historical solutions and discussions

Paid Support Helpdesk

The Paid Support Helpdesk offers:

  • Higher priority response times
  • Dedicated support team
  • Extended support hours
  • Priority issue resolution

Paid Consulting

We can work together with you on your project and develop a part or complete application. If you need new features in the existing GroupDocs product or to create API for new file formats, send us a request at consulting.groupdocs.com/contact.


Additional Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

groupdocs_viewer_net-25.12-py3-none-win_amd64.whl (161.6 MB view details)

Uploaded Python 3Windows x86-64

groupdocs_viewer_net-25.12-py3-none-win32.whl (157.1 MB view details)

Uploaded Python 3Windows x86

groupdocs_viewer_net-25.12-py3-none-macosx_11_0_arm64.whl (162.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

groupdocs_viewer_net-25.12-py3-none-macosx_10_14_x86_64.whl (166.9 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file groupdocs_viewer_net-25.12-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for groupdocs_viewer_net-25.12-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 08c509de8a68bf2fd17e7b469ee82a4fc06e4fcfa7d62a4a0236bd0920e407f8
MD5 edb4659086c96826d3558471c546bf1c
BLAKE2b-256 d266f223df08c4d7b349d4a10b6a44c969e9805338502cf00d4f05073122841a

See more details on using hashes here.

File details

Details for the file groupdocs_viewer_net-25.12-py3-none-win32.whl.

File metadata

File hashes

Hashes for groupdocs_viewer_net-25.12-py3-none-win32.whl
Algorithm Hash digest
SHA256 17452452c732eab819abe92ba8cf639c34f8b5dd9ee9cf1df058fdfe2f2d81af
MD5 0c72c0ee85467a3be3d2e88a303323f0
BLAKE2b-256 dcaad3487f0e1b177bab1a055c356f71c59eb954b8e8c51db4fe632b655c2acb

See more details on using hashes here.

File details

Details for the file groupdocs_viewer_net-25.12-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for groupdocs_viewer_net-25.12-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2c15f6f5704a201d945fbe4ea537e2166984a00a96b2e7dada7918a39715807e
MD5 efb9dba34ed772ad2e8da72a1d1c5b74
BLAKE2b-256 163079defa0b8549fceabdbb8f0b1e918833051479a89bd39ee2b52edc0b1a48

See more details on using hashes here.

File details

Details for the file groupdocs_viewer_net-25.12-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for groupdocs_viewer_net-25.12-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a97cabf61aae7113be7250426057b509e0378204cce91c9775cc9ef8843eedcb
MD5 11989b42e4a5df78b26ebecd4de79a31
BLAKE2b-256 a7c8724f3a3012e2690f886b52d8fbc16fbf6dd0791fc3b3a68fc36051545db1

See more details on using hashes here.

File details

Details for the file groupdocs_viewer_net-25.12-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for groupdocs_viewer_net-25.12-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3f41c24a75e49a6ebcdf929144ab28fb61bce22f37959bb0e9793774203221e4
MD5 da55856a273e2541460df3ab545d2c8c
BLAKE2b-256 9d635a69987d581e8c41ccf837a7df2961d34dcdf53d5d63ff6fd9a26208a00e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page