Kck.Documents.Abstractions 3.4.0

dotnet add package Kck.Documents.Abstractions --version 3.4.0
                    
NuGet\Install-Package Kck.Documents.Abstractions -Version 3.4.0
                    
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="Kck.Documents.Abstractions" Version="3.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kck.Documents.Abstractions" Version="3.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Kck.Documents.Abstractions" />
                    
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 Kck.Documents.Abstractions --version 3.4.0
                    
#r "nuget: Kck.Documents.Abstractions, 3.4.0"
                    
#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 Kck.Documents.Abstractions@3.4.0
                    
#: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=Kck.Documents.Abstractions&version=3.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Kck.Documents.Abstractions&version=3.4.0
                    
Install as a Cake Tool

Kck.Documents.Abstractions

Provider-agnostic document processing contracts for Excel generation, CSV export, and image resizing — implement with ClosedXML or ImageSharp providers.

Installation

dotnet add package Kck.Documents.Abstractions

Quick Start

// Program.cs — register a concrete provider
builder.Services.AddKckClosedXmlDocuments();
builder.Services.AddKckImageSharpProcessor();

// Generate an Excel file from a list
public class ReportHandler(IExcelService excel, ICsvExporter csv)
{
    public async Task<byte[]> ExportOrdersExcelAsync(
        IReadOnlyList<OrderRow> rows, CancellationToken ct)
    {
        return await excel.CreateFromDataAsync(rows, sheetName: "Orders", ct);
    }

    public async Task<byte[]> ExportOrdersCsvAsync(
        IReadOnlyList<OrderRow> rows, CancellationToken ct)
    {
        return await csv.ExportAsync(rows, ct);
    }
}

// Resize an uploaded image
public async Task<byte[]> ThumbnailAsync(
    Stream imageStream, IImageProcessor processor, CancellationToken ct)
{
    return await processor.ResizeAsync(imageStream, width: 200, height: 200, ct);
}

Configuration

Property Description Default
Documents:Excel:DefaultSheetName Default worksheet name "Sheet1"
Documents:Image:JpegQuality JPEG compression quality (1-100) 85

Resources

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Kck.Documents.Abstractions:

Package Downloads
Kck.Documents.ImageSharp

SixLabors.ImageSharp-backed IImageProcessor for server-side image operations. Supports resize (with aspect-ratio preservation), format conversion (JPEG, PNG, WebP, AVIF), and image dimension reading. Registered via AddKckDocumentsImageSharp().

Kck.Documents.ClosedXml

ClosedXML-backed IExcelService and ICsvExporter implementations. Generates Excel workbooks from typed collections with auto-generated headers, and exports data to CSV format. Registered via AddKckDocumentsClosedXml().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.4.0 114 5/17/2026
3.3.0 115 5/17/2026
3.2.0 110 5/17/2026
3.1.0 113 5/17/2026
3.0.0 110 5/17/2026
2.0.0 122 5/7/2026