You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-contents-of-rar-or-zip-document-to-different-formats-and-compress.md
title: Working with Archive Files (ZIP, RAR, 7z, TAR)
4
+
title: Extract and Convert Archive Contents
5
5
weight: 12
6
-
description: "Learn three ways to work with archive files: extract and convert contents, repackage archive formats, or convert and re-compress using GroupDocs.Conversion for .NET."
7
-
keywords: Convert RAR, Convert ZIP, Extract ZIP, Convert 7z, Archive conversion, ZIP to 7z, Extract and convert, Archive repackaging
6
+
description: "Learn how to extract files from archives (ZIP, RAR, 7z, TAR) and convert them to different formats using GroupDocs.Conversion for .NET."
7
+
keywords: Extract ZIP, Convert ZIP contents, Extract RAR, Convert archive files, Extract and convert, Archive extraction
8
8
productName: GroupDocs.Conversion for .NET
9
9
hideChildren: False
10
10
toc: True
11
11
---
12
12
13
-
GroupDocs.Conversion provides three workflows for processing archive files (ZIP, RAR, 7z, TAR).
13
+
GroupDocs.Conversion can extract files from archives (ZIP, RAR, 7z, TAR) and convert each file to a different format. This guide covers two workflows for processing archive contents.
14
14
15
-
## Three Archive Workflows
15
+
**To convert archive formats** (ZIP to 7z, etc.) **without extracting contents**, see [Convert Archive Formats]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md" >}}).
16
+
17
+
## Two Content Extraction Workflows
16
18
17
19
| Workflow | What It Does | Result |
18
20
|----------|-------------|--------|
19
-
|**[Workflow 1](#workflow-1-extract-and-convert-to-individual-files)**| Extract and convert each file separately | Individual converted files |
20
-
|**[Workflow 2](#workflow-2-repackage-archive-format)**| Change archive format without modifying contents | New archive format (ZIP → 7z) |
21
-
|**[Workflow 3](#workflow-3-convert-contents-and-re-compress)**| Convert contents AND create new archive | New archive with converted contents |
21
+
|**[Workflow 1](#workflow-1-extract-and-convert-to-individual-files)**| Extract and convert each file separately | Individual converted files (e.g., doc-1.pdf, doc-2.pdf) |
22
+
|**[Workflow 2](#workflow-2-convert-contents-and-re-compress)**| Convert contents AND create new archive | New archive with converted contents |
22
23
23
24
## Workflow 1: Extract and Convert to Individual Files
Change archive format while preserving contents. Use the standard Converter API:
66
-
67
-
```csharp
68
-
usingGroupDocs.Conversion;
69
-
usingGroupDocs.Conversion.Options.Convert;
70
-
usingGroupDocs.Conversion.FileTypes;
71
-
72
-
using (varconverter=newConverter("archive.zip"))
73
-
{
74
-
varoptions=newCompressionConvertOptions
75
-
{
76
-
Format=CompressionFileType.SevenZ
77
-
};
78
-
converter.Convert("archive.7z", options);
79
-
}
80
-
81
-
// Output: archive.7z containing the same files as the original ZIP
82
-
```
83
-
84
-
For more examples and advanced options, see [Convert Archive Formats]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md" >}}).
85
-
86
-
## Workflow 3: Convert Contents and Re-compress
64
+
## Workflow 2: Convert Contents and Re-compress
87
65
88
66
Extract files, convert them, and package into a new archive:
| Extract and convert each file separately |**Workflow 1**|
142
-
|Change archive format only (no conversion)|**Workflow 2** (Standard Converter API)|
143
-
|Convert contents AND create new archive|**Workflow 3**|
120
+
|Convert contents AND create new archive|**Workflow 2**|
121
+
|Change archive format only (no conversion)|See [Convert Archive Formats]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md" >}})|
144
122
145
123
## Supported Archive Formats
146
124
@@ -164,6 +142,6 @@ For versions **before v24.10**, use:
Copy file name to clipboardExpand all lines: net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ hideChildren: False
10
10
toc: True
11
11
---
12
12
13
-
This guide shows how to convert archives between formats (ZIP to 7z, ZIP to TAR, etc.) without modifying the files inside.
13
+
This guide shows how to convert archives between formats (ZIP to 7z, ZIP to TAR, etc.) without modifying the files inside. The archive format changes, but the contents remain unchanged.
14
14
15
-
**For extracting and converting archive contents**, see [Working with Archive Files (ZIP, RAR, 7z, TAR)]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-contents-of-rar-or-zip-document-to-different-formats-and-compress.md" >}}).
15
+
**To extract and convert files inside archives**, see [Extract and Convert Archive Contents]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-contents-of-rar-or-zip-document-to-different-formats-and-compress.md" >}}).
0 commit comments