Skip to content

Commit 18be57e

Browse files
added loading files section
1 parent 5d87c25 commit 18be57e

5 files changed

Lines changed: 176 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
id: loading-files
3+
url: metadata/python-net/loading-files
4+
title: Loading files
5+
weight: 1
6+
description: "The listed articles below explain how to load password-protected documents and load files from different sources."
7+
keywords:
8+
productName: GroupDocs.Metadata for Python via .NET
9+
hideChildren: False
10+
---
11+
GroupDocs.Metadata allows you to load password-protected documents and load files from different sources.
12+
13+
For more details please refer to the following guides:
14+
15+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
id: load-a-file-of-a-specific-format
3+
url: metadata/python-net/load-a-file-of-a-specific-format
4+
title: Load a file of a specific format
5+
weight: 3
6+
description: "This example demonstrates how to load a file of a particular format using GroupDocs.Metadata for Python via .NET."
7+
keywords: load a file, specific format
8+
productName: GroupDocs.Metadata for Python via .NET
9+
hideChildren: False
10+
---
11+
This example demonstrates how to load a file of some particular format.
12+
13+
**advanced_usage.loading_files.loading_file_of_specific_format**
14+
15+
16+
```python
17+
def run():
18+
# Explicitly specifying the format of a file to load can spare time on detecting the format
19+
load_options = gm.LoadOptions(gm.common.FileFormat.SPREADSHEET)
20+
21+
# constants.input_xls is an absolute or relative path to your document. Ex: r"C:\\Docs\\source.xls"
22+
with gm.Metadata(constants.input_xls, load_options) as metadata:
23+
root = metadata.get_root_package()
24+
25+
# Use format-specific properties to extract or edit metadata
26+
print(root.document_properties.author)
27+
28+
# ...
29+
```
30+
31+
32+
## More resources
33+
### GitHub examples
34+
You may easily run the code above and see the feature in action in our GitHub examples:
35+
* [GroupDocs.Metadata for .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET)
36+
* [GroupDocs.Metadata for Java examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Java)
37+
* [GroupDocs.Metadata for Python via .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Python-via-.NET/)
38+
39+
### Free online document metadata management App
40+
Along with full featured Python via .NET library we provide simple, but powerful free Apps.
41+
You are welcome to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images and more with our free online [Free Online Document Metadata Viewing and Editing App](https://products.groupdocs.app/metadata).
42+
43+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
id: load-a-password-protected-document
3+
url: metadata/python-net/load-a-password-protected-document
4+
title: Load a password-protected document
5+
weight: 4
6+
description: "This example demonstrates how to load a password-protected document using GroupDocs.Metadata for Python via .NET."
7+
keywords: load a password-protected document
8+
productName: GroupDocs.Metadata for Python via .NET
9+
hideChildren: False
10+
---
11+
This example demonstrates how to load a password-protected document.
12+
13+
**advanced_usage.loading_files.load_password_protected_document**
14+
15+
16+
```python
17+
def run():
18+
# Specify the password
19+
load_options = gm.LoadOptions()
20+
load_options.password = "123"
21+
22+
# constants.protected_docx is an absolute or relative path to your document. Ex: r"C:\\Docs\\source.docx"
23+
with gm.Metadata(constants.protected_docx, load_options) as metadata:
24+
# Extract, edit or remove metadata here
25+
# ...
26+
pass
27+
```
28+
29+
30+
## More resources
31+
### GitHub examples
32+
You may easily run the code above and see the feature in action in our GitHub examples:
33+
* [GroupDocs.Metadata for .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET)
34+
* [GroupDocs.Metadata for Java examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Java)
35+
* [GroupDocs.Metadata for Python via .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Python-via-.NET/)
36+
37+
### Free online document metadata management App
38+
Along with full featured Python via .NET library we provide simple, but powerful free Apps.
39+
You are welcome to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images and more with our free online [Free Online Document Metadata Viewing and Editing App](https://products.groupdocs.app/metadata).
40+
41+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
id: load-from-a-local-disk
3+
url: metadata/python-net/load-from-a-local-disk
4+
title: Load from a local disk
5+
weight: 1
6+
description: "Learn how to open a file from local disk using GroupDocs.Metadata for Python via .NET."
7+
keywords: load file from local disk
8+
productName: GroupDocs.Metadata for Python via .NET
9+
hideChildren: False
10+
---
11+
The following example demonstrates how to load a file from a local disk using GroupDocs.Metadata for Python via .NET.
12+
13+
**advanced_usage.loading_files.load_from_local_disk**
14+
15+
16+
```python
17+
def run():
18+
# Absolute or relative path to your document, e.g. r"C:\\Docs\\source.one"
19+
input_path = r"C:\\Docs\\source.one"
20+
21+
with gm.Metadata(input_path) as metadata:
22+
# Extract, edit or remove metadata here
23+
# ...
24+
pass
25+
```
26+
27+
28+
## More resources
29+
### GitHub examples
30+
You may easily run the code above and see the feature in action in our GitHub examples:
31+
* [GroupDocs.Metadata for .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET)
32+
* [GroupDocs.Metadata for Java examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Java)
33+
* [GroupDocs.Metadata for Python via .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Python-via-.NET/)
34+
35+
### Free online document metadata management App
36+
Along with full featured Python via .NET library we provide simple, but powerful free Apps.
37+
You are welcome to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images and more with our free online [Free Online Document Metadata Viewing and Editing App](https://products.groupdocs.app/metadata).
38+
39+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
id: load-from-a-stream
3+
url: metadata/python-net/load-from-a-stream
4+
title: Load from a stream
5+
weight: 2
6+
description: "This example demonstrates how to load a file from a stream using GroupDocs.Metadata for Python via .NET."
7+
keywords: load a file from a stream
8+
productName: GroupDocs.Metadata for Python via .NET
9+
hideChildren: False
10+
---
11+
This example demonstrates how to load a file from a stream.
12+
13+
**advanced_usage.loading_files.load_from_stream**
14+
15+
16+
```python
17+
def run():
18+
# constants.input_doc is an absolute or relative path to your document. Ex: r"C:\\Docs\\source.doc"
19+
with open(constants.input_doc, 'rb') as stream:
20+
with gm.Metadata(stream) as metadata:
21+
# Extract, edit or remove metadata here
22+
# ...
23+
pass
24+
```
25+
26+
27+
## More resources
28+
### GitHub examples
29+
You may easily run the code above and see the feature in action in our GitHub examples:
30+
* [GroupDocs.Metadata for .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET)
31+
* [GroupDocs.Metadata for Java examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Java)
32+
* [GroupDocs.Metadata for Python via .NET examples](https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Python-via-.NET/)
33+
34+
### Free online document metadata management App
35+
Along with full featured Python via .NET library we provide simple, but powerful free Apps.
36+
You are welcome to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images and more with our free online [Free Online Document Metadata Viewing and Editing App](https://products.groupdocs.app/metadata).
37+
38+

0 commit comments

Comments
 (0)