Skip to content

Commit

Permalink
Hello world page added & pages were reordered
Browse files Browse the repository at this point in the history
  • Loading branch information
RakhimAimaganbetov committed May 30, 2024
1 parent 482c8d8 commit cdf8c0f
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
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: installation, maven
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
2 changes: 1 addition & 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 Down
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
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit cdf8c0f

Please sign in to comment.