OfficeIMO.Reader.Zip 0.0.24

Prefix Reserved
dotnet add package OfficeIMO.Reader.Zip --version 0.0.24
                    
NuGet\Install-Package OfficeIMO.Reader.Zip -Version 0.0.24
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Reader.Zip" Version="0.0.24" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Reader.Zip" Version="0.0.24" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Reader.Zip" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Reader.Zip --version 0.0.24
                    
#r "nuget: OfficeIMO.Reader.Zip, 0.0.24"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Reader.Zip@0.0.24
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Reader.Zip&version=0.0.24
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Reader.Zip&version=0.0.24
                    
Install as a Cake Tool

OfficeIMO.Reader.Zip - ZIP reader adapter

nuget version nuget downloads

OfficeIMO.Reader.Zip registers a ZIP traversal adapter for OfficeIMO.Reader.

Install

dotnet add package OfficeIMO.Reader.Zip

Register

using OfficeIMO.Reader;
using OfficeIMO.Reader.Zip;
using OfficeIMO.Zip;

DocumentReaderZipRegistrationExtensions.RegisterZipHandler(
    zipOptions: new ZipTraversalOptions {
        MaxEntries = 1000,
        MaxDepth = 8,
        MaxTotalUncompressedBytes = 100L * 1024L * 1024L
    });

Examples

Read supported files inside an archive

using OfficeIMO.Reader;
using OfficeIMO.Reader.Csv;
using OfficeIMO.Reader.Json;
using OfficeIMO.Reader.Zip;
using OfficeIMO.Zip;

DocumentReaderCsvRegistrationExtensions.RegisterCsvHandler();
DocumentReaderJsonRegistrationExtensions.RegisterJsonHandler();
DocumentReaderZipRegistrationExtensions.RegisterZipHandler(
    zipOptions: new ZipTraversalOptions {
        MaxEntries = 500,
        MaxTotalUncompressedBytes = 200L * 1024L * 1024L
    },
    readerZipOptions: new ReaderZipOptions {
        ReadNestedZipEntries = true,
        MaxNestedDepth = 2
    });

foreach (var chunk in DocumentReader.Read("evidence.zip", new ReaderOptions {
    MaxInputBytes = 200L * 1024L * 1024L
})) {
    Console.WriteLine($"{chunk.Kind}: {chunk.Location.Path}");
    Console.WriteLine(chunk.Markdown ?? chunk.Text);
}

Surface archive warnings

using OfficeIMO.Reader;
using OfficeIMO.Reader.Zip;
using OfficeIMO.Zip;

DocumentReaderZipRegistrationExtensions.RegisterZipHandler(
    zipOptions: new ZipTraversalOptions {
        MaxEntries = 100,
        MaxCompressionRatio = 50,
        MaxEntryUncompressedBytes = 10L * 1024L * 1024L
    },
    readerZipOptions: new ReaderZipOptions {
        ReadNestedZipEntries = false
    },
    replaceExisting: true);

var chunks = DocumentReader.Read("upload.zip").ToList();
foreach (string warning in chunks.SelectMany(chunk => chunk.Warnings ?? Array.Empty<string>())) {
    Console.WriteLine(warning);
}

What it emits

  • Safe entry enumeration through OfficeIMO.Zip.
  • Best-effort entry extraction into ReaderChunk.
  • Warning chunks for skipped or failed entries.
  • Bounded nested ZIP traversal with ReaderZipOptions.
  • Path and stream dispatch, including non-seekable stream support.

Boundaries

  • Reader adapter registration belongs here.
  • ZIP traversal policy belongs in OfficeIMO.Zip.
  • Shared extraction contracts belong in OfficeIMO.Reader.

Targets and license

  • Targets: netstandard2.0, net8.0, net10.0.
  • License: MIT.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.24 79 6/16/2026
0.0.23 188 6/16/2026
0.0.22 138 6/15/2026
0.0.21 107 6/13/2026
0.0.20 86 6/12/2026
0.0.19 95 6/9/2026
0.0.18 92 6/5/2026
0.0.17 93 5/27/2026
0.0.16 87 5/26/2026
0.0.15 94 5/26/2026
0.0.14 90 5/23/2026
0.0.13 100 5/22/2026
0.0.12 95 5/21/2026
0.0.11 93 5/21/2026
0.0.10 89 5/20/2026
0.0.9 102 5/19/2026
0.0.8 101 5/18/2026
0.0.7 94 5/16/2026
0.0.6 95 5/14/2026
0.0.5 92 5/14/2026
Loading failed