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
// Output: archive.7z containing the same files as the original ZIP
114
162
```
115
163
164
+
**Which method to choose?**
165
+
-**Method 1** (Standard API): Simplest, recommended for most users
166
+
-**Method 2** (WithOptions): Clean alternative if using FluentConverter
167
+
-**Method 3** (Compress): Advanced scenarios with stream handling
168
+
169
+
See [Convert Archive Formats]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md" >}}) for detailed comparison and more examples.
170
+
116
171
### Why Repackage Archives?
117
172
118
173
-**Better compression:** Convert ZIP to 7z for smaller file sizes
For more advanced options including different compression formats, optimization settings, and best practices, see [Convert to Compression with advanced options]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-compression-with-advanced-options.md" >}}).
245
+
For more advanced options including different compression formats, optimization settings, and best practices, see [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" >}}).
191
246
192
247
## Choosing the Right Workflow
193
248
194
249
Use this decision guide to select the appropriate workflow:
195
250
196
-
| Your Goal | Workflow | Key API Methods |
197
-
|-----------|----------|-----------------|
198
-
| Extract and convert each file separately |**Workflow 1**|`Load()` → `ConvertTo()` → `WithOptions()` → `Convert()`|
199
-
| Change archive format only (no conversion) |**Workflow 2**|`Load()` → `ConvertTo()` → `Compress()` → `Convert()`|
200
-
| Convert contents AND create new archive |**Workflow 3**|`Load()` → `ConvertTo()` → `WithOptions()` → `Compress()` → `Convert()`|
251
+
| Your Goal | Workflow | Recommended Method |
252
+
|-----------|----------|-------------------|
253
+
| Extract and convert each file separately |**Workflow 1**| FluentConverter: `Load()` → `ConvertTo()` → `WithOptions()` → `Convert()`|
254
+
| Change archive format only (no conversion) |**Workflow 2**| Standard API: `new Converter().Convert()` with `CompressionConvertOptions`|
255
+
| Convert contents AND create new archive |**Workflow 3**| FluentConverter: `Load()` → `ConvertTo()` → `WithOptions()` → `Compress()` → `Convert()`|
256
+
257
+
**Workflow 2 Options (all work):**
258
+
-**Method 1:** Standard Converter API - `new Converter().Convert()` (simplest)
259
+
-**Method 2:** FluentConverter with `.WithOptions()` - clean alternative
260
+
-**Method 3:** FluentConverter with `.Compress()` - advanced scenarios
0 commit comments