Metadata-Version: 2.1
Name: groupdocs-viewer-net
Version: 25.12
Summary: 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).
Home-page: https://products.groupdocs.com/viewer/python-net/
Author: GroupDocs
License: Other/Proprietary License
Keywords: viewer,view,file,render,api,pdf,docx,xlsx,pptx,html,png,word,excel,powerpoint,visio,opendocument,photoshop
Platform: macos_arm64
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Graphics :: Viewers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.5,<3.14
Description-Content-Type: text/markdown

[![GroupDocs.Viewer for Python via .NET Banner](https://raw.githubusercontent.com/groupdocs/groupdocs.github.io/master/img/banners/groupdocs-viewer-python-net-banner.png)](https://purchase.groupdocs.com/temporary-license)

[Product Home](https://products.groupdocs.com/viewer/python-net/) | [Docs](https://docs.groupdocs.com/viewer/python-net/) | [Live Demos](https://products.groupdocs.app/viewer/family) | [API Reference](https://reference.groupdocs.com/viewer/) | [Blog](https://blog.groupdocs.com/category/viewer/) | [Search](https://search.groupdocs.com/) | [Free Support Forum](https://forum.groupdocs.com/c/viewer) | [Temporary License](https://purchase.groupdocs.com/temporary-license)

## Table of Contents

- [About](#about)
- [Quick Example](#quick-example-render-docx-to-pdf)
- [Key Features](#key-features)
- [Supported Document Formats](#supported-document-formats)
- [Getting Started](#getting-started)
  - [Prerequisites](#prerequisites)
  - [Installation](#installation)
  - [Use Cases](#use-cases)
- [Licensing](#licensing)
- [Support](#support)
- [Additional Resources](#additional-resources)

## 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:

```py
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](https://docs.groupdocs.com/viewer/python-net/supported-document-formats/).

---

## Getting Started

### Prerequisites

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

Learn more about [system requirements](https://docs.groupdocs.com/viewer/python-net/system-requirements/).

### Installation

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

**Install from PyPI**

```bash
pip install groupdocs-viewer-net
```

**Upgrade to the latest version**

```bash
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](https://releases.groupdocs.com/viewer/python-net/) and choose the appropriate package based on your system's architecture.

Learn more about [installation](https://docs.groupdocs.com/viewer/python-net/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](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Python-via-.NET/) repository.
> See [how to run code examples](https://docs.groupdocs.com/viewer/python-net/how-to-run-examples/) for more details.

#### Render Document to HTML

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

```py
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.

```py
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.

```py
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](https://purchase.groupdocs.com/temporary-license/) page
* Follow the instructions to request your temporary license
* Copy the license file and apply it using the code example

```python
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](https://purchase.groupdocs.com/pricing/viewer/python-net/).

---

## 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](https://forum.groupdocs.com/), [Paid Support Helpdesk](https://helpdesk.groupdocs.com/) and [Paid Consulting](https://consulting.groupdocs.com/).

### Free Support Forum

The [GroupDocs Free Support Forum](https://forum.groupdocs.com/) 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](https://helpdesk.groupdocs.com/) 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](https://consulting.groupdocs.com/contact/).

---

## Additional Resources

- **[Documentation](https://docs.groupdocs.com/viewer/python-net/)** – Complete API documentation and guides
- **[API Reference](https://reference.groupdocs.com/viewer/)** – Detailed API reference documentation
- **[Live Demos](https://products.groupdocs.app/viewer/family)** – Interactive online demos
- **[Code Examples](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Python-via-.NET/)** – Working code examples with sample files
- **[Blog](https://blog.groupdocs.com/category/viewer/)** – Latest updates and tutorials
