Skip to content

Commit

Permalink
Merge pull request #84 from groupdocs-viewer/python-net-docs-updates
Browse files Browse the repository at this point in the history
python-net docs updates
  • Loading branch information
RakhimAimaganbetov committed May 30, 2024
2 parents 71a2c40 + 5eb2a90 commit fd5d8b2
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 11 deletions.
1 change: 1 addition & 0 deletions python-net/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ GroupDocs.Viewer ships with a wide range of options that allow you to control th

<p>GET STARTED</p>
<ul>
<li><a href='{{< ref "/viewer/python-net/getting-started/hello-world.md" >}}'>Hello World</a></li>
<li><a href='{{< ref "/viewer/python-net/getting-started/system-requirements.md" >}}'>System requirements</a></li>
<li><a href='{{< ref "/viewer/python-net/getting-started/installation.md" >}}'>Installation</a></li>
<li><a href='{{< ref "/viewer/python-net/getting-started/licensing-and-subscription.md" >}}'>Licensing</a></li>
Expand Down
2 changes: 1 addition & 1 deletion python-net/getting-started/features-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: features-overview
url: viewer/python-net/features-overview
title: Features overview
weight: 1
weight: 3
description: "With GroupDocs.Viewer for Python you can render files to HTML, PNG, JPEG and PDF formats, list and save attachments, embedded files and compressed files, and extract document text."
keywords: render files,viewer,html,PNG,JPEG,PDF
productName: GroupDocs.Viewer for Python via .NET
Expand Down
37 changes: 37 additions & 0 deletions python-net/getting-started/hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
id: hello-world
url: viewer/python-net/hello-world
title: Hello, World!
second_title: A simple example of how to use GroupDocs.Viewer for Python via .NET
linkTitle: Hello World
weight: 2
keywords: "hello world, example, get started"
description: "Render files, list and save attachments in any supported format using GroupDocs.Viewer for Python via .NET to experience its simplicity and power in Python."
productName: GroupDocs.Viewer for Python via .NET
hideChildren: False
toc: True
---

A "Hello, World!" code is often the first simple example to write uisng "GroupDocs.Viewer for Python via .NET", and it can also be used as a sanity test to ensure the software intended to compile or run source code is correctly installed.

"GroupDocs.Viewer for Python via .NET" library allows you to render documents in various formats as HTML, PDF, JPEG, and PNG files. There are many other file formats are [supported](/viewer/python-net/supported-document-formats/).

Below code snippet follows these steps:

1. Import GroupDocs.Viewer
2. Import GroupDocs.Viewer.Options class
3. Initialize a GroupDocs.Viewer passing path to sample document
4. Initialize an HtmlViewOptions passing file name format of output to render sample document to HTML format
5. Call view() method to render the sample document

The following code snippet is a "Hello, World!" example to exhibit working of "GroupDocs.Viewer for Python via .NET" API:

```python
import groupdocs.viewer as gv
import groupdocs.viewer.options as gvo

def run():
with gv.Viewer("sample.docx") as viewer:
options = gvo.HtmlViewOptions.for_embedded_resources("page_{0}.html")
viewer.view(options)
```
2 changes: 1 addition & 1 deletion python-net/getting-started/how-to-run-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: how-to-run-examples
url: viewer/python-net/how-to-run-examples
title: How to run examples
weight: 6
weight: 7
description: "How to run examples."
keywords: "groupdocs viewer python, examples, npm, eclipse ide"
productName: GroupDocs.Viewer for Python via .NET
Expand Down
13 changes: 12 additions & 1 deletion python-net/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id: installation
url: viewer/python-net/installation
title: Install GroupDocs.Viewer for Python via .NET
linkTitle: Installation
weight: 4
weight: 1
keywords: installation, maven
description: "This topic describes how to install GroupDocs.Viewer for Python."
productName: GroupDocs.Viewer for Python via .NET
Expand All @@ -19,3 +19,14 @@ All Python packages are hosted at [PyPI](https://pypi.org/project/groupdocs-vie
pip install groupdocs-viewer-net
```

## Download GroupDocs.Viewer from the official website

Visit [https://releases.groupdocs.com/viewer/python-net/](https://releases.groupdocs.com/viewer/net/) and download the **GroupDocs.Viewer** assemblies.

1. Download the Wheel File: On the download page, locate the latest version of the **GroupDocs.Viewer** package.
Click on the download link to download the wheel file containing the package.
2. Choose the destination folder where you want to place the package.
3. Install package via pip using downloaded package. For example,
```batch
pip install .../groupdocs_viewer_net-24.5-py3-none-win32.whl
```
2 changes: 1 addition & 1 deletion python-net/getting-started/supported-document-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: supported-document-formats
url: viewer/python-net/supported-document-formats
title: Supported file formats
weight: 2
weight: 4
keywords: file formats, Microsoft Word, Microsoft Excel, Microsoft PowerPoint, PDF, HTML, Python Script, TAR, ZIP, DWG
description: "This topic lists file formats supported by GroupDocs.Viewer for Python."
productName: GroupDocs.Viewer for Python via .NET
Expand Down
11 changes: 4 additions & 7 deletions python-net/getting-started/system-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: system-requirements
url: viewer/python-net/system-requirements
title: System requirements
weight: 3
weight: 6
description: "GroupDocs.Viewer for Python via .NET does not require any external software to be installed such as Microsoft Word, Microsoft Excel or Microsoft PowerPoint for file rendering."
keywords: file rendering
productName: GroupDocs.Viewer for Python via .NET
Expand All @@ -22,7 +22,7 @@ GroupDocs.Viewer for Python via .NET does not require any external software to b

## Supported Operating Systems

GroupDocs.Viewer for Python can be used on any 32-bit or 64-bit operating system where .NET is installed including, but not limited to:
GroupDocs.Viewer for Python can be used on any 32-bit or 64-bit operating system where .NET 6 is installed including, but not limited to:

### Windows

Expand All @@ -33,13 +33,10 @@ GroupDocs.Viewer for Python can be used on any 32-bit or 64-bit operating system
* Microsoft Windows 10 (x64, x86)
* Microsoft Windows 11 (x64)

### Linux

* Linux (Ubuntu, OpenSUSE, CentOS and others)
## Supported Frameworks and Target Runtimes

### Mac

* Mac OS X
GroupDocs.Viewer for Python supports .NET Framework and .NET platforms. Current version supports .NET Framework 4.6.2 and above, .NET 6 and above.

## Development Environments

Expand Down

0 comments on commit fd5d8b2

Please sign in to comment.