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.
To convert archive formats (ZIP to 7z, etc.) without extracting contents, see Convert Archive Formats.
Workflow 1: Extract and Convert to Individual Files
Extract files from an archive and convert each one separately (no re-compression).
usingGroupDocs.Conversion.Fluent;usingGroupDocs.Conversion.Options.Convert;usingGroupDocs.Conversion.Contracts;usingSystem.IO;// ZIP contains: report.docx, summary.docx, analysis.docxFluentConverter.Load("documents.zip").ConvertTo((SaveContextsaveContext)=>{// Create separate output file for each documentstringfileName=$"converted-document-{saveContext.ItemIndex}.pdf";returnFile.Create(Path.Combine(@"C:\output",fileName));}).WithOptions(newPdfConvertOptions()).Convert();// Output: converted-document-1.pdf, converted-document-2.pdf, converted-document-3.pdf