Skip to content

Commit f38d482

Browse files
committed
updated compression documents articles
1 parent 6cf3053 commit f38d482

2 files changed

Lines changed: 15 additions & 37 deletions

File tree

net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-contents-of-rar-or-zip-document-to-different-formats-and-compress.md

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
---
22
id: convert-contents-of-rar-or-zip-to-different-formats-and-compress
33
url: conversion/net/convert-contents-of-rar-or-zip-document-to-different-formats-and-compress
4-
title: Working with Archive Files (ZIP, RAR, 7z, TAR)
4+
title: Extract and Convert Archive Contents
55
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
88
productName: GroupDocs.Conversion for .NET
99
hideChildren: False
1010
toc: True
1111
---
1212

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.
1414

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
1618

1719
| Workflow | What It Does | Result |
1820
|----------|-------------|--------|
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 |
2223

2324
## Workflow 1: Extract and Convert to Individual Files
2425

@@ -60,30 +61,7 @@ FluentConverter.Load("documents.zip")
6061
// Output: report.pdf, summary.pdf, analysis.pdf
6162
```
6263

63-
## Workflow 2: Repackage Archive Format
64-
65-
Change archive format while preserving contents. Use the standard Converter API:
66-
67-
```csharp
68-
using GroupDocs.Conversion;
69-
using GroupDocs.Conversion.Options.Convert;
70-
using GroupDocs.Conversion.FileTypes;
71-
72-
using (var converter = new Converter("archive.zip"))
73-
{
74-
var options = new CompressionConvertOptions
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
8765

8866
Extract files, convert them, and package into a new archive:
8967

@@ -139,8 +117,8 @@ FluentConverter.Load("sensitive-files.zip")
139117
| Your Goal | Use |
140118
|-----------|-----|
141119
| 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" >}}) |
144122

145123
## Supported Archive Formats
146124

@@ -164,6 +142,6 @@ For versions **before v24.10**, use:
164142

165143
## See Also
166144

167-
- [Convert Archive Formats (ZIP, 7z, TAR, RAR)]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md" >}})
145+
- [Convert Archive Formats (ZIP, 7z, TAR, RAR)]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md" >}}) - Change archive format without extracting contents
168146
- [Common Conversion Options]({{< ref "conversion/net/developer-guide/advanced-usage/converting/common-conversion-options/_index.md" >}})
169147
- [FluentConverter API Reference](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.fluent/fluentconverter/)

net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ hideChildren: False
1010
toc: True
1111
---
1212

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.
1414

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" >}}).
1616

1717
## Basic Archive Format Conversion
1818

0 commit comments

Comments
 (0)