Dabbler.Reports.Export 2.0.2

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

Dabbler.Reports.Export

Part of the Dabbler Platform. See docs/platform-overview.md for the platform-level view of how this library fits in.

PDF export for Dabbler Reports. Renders composed report pages to PDF documents using DabblerPdf, with full support for fonts, styles, images, borders, and multi-page output.

Audience

Teams already using Dabbler.Reports.Core to compose banded reports who need to deliver those reports as PDF — for email attachments, archival, or printable downloads — without bringing in a separate reporting engine.

Prerequisites and stack constraints

  • .NET 10 (current LTS)
  • Reference to Dabbler.Reports.Core for the composed-pages model
  • Reference to DabblerPdf for PDF rendering (see warnings below for the license implication)

Install

Adoption note: The recommended adoption model for internal projects is integrated source under src/Libs/Dabbler.Reports.Export/. NuGet packages are available; to install the package: dotnet add package Dabbler.Reports.Export

Minimal registration

No DI registration required — PdfExporter is constructed directly per report run.

Smallest working example

// 1. Compose report pages via Dabbler.Reports.Core
var layoutEngine = new BandLayoutEngine(report, textMeasurer);
var pages = layoutEngine.Compose(data);

// 2. Export to PDF
var exporter = new PdfExporter(report)
{
    Title = "Sales Summary",
    Author = "Report System"
};

byte[] pdfBytes = exporter.Export(pages);
File.WriteAllBytes("output.pdf", pdfBytes);

The PDF byte stream is byte[] — flow it into HTTP responses, file storage, an email-attachment helper, or Dabbler.Reports.Blazor's download affordance directly.

Warnings and caveats

  • DabblerPdf license — non-MIT. DabblerPdf is a Dabbler-authored C# port of OpenPDF and is dual-licensed LGPL-2.1-only OR MPL-2.0 — not MIT. Consumers whose distribution policy requires non-copyleft licenses for transitive PDF dependencies should review this before adopting. The THIRD-PARTY-NOTICES.txt file is included in the NuGet package.

  • Fonts. By default every family maps to one of the PDF Base 14 fonts: Times, Times New Roman and serif to Times; Courier, Courier New and monospace to Courier; anything else (Arial, Segoe UI, ...) to Helvetica. The Base 14 fonts are not embedded and draw Windows-1252 text only, so Polish, Cyrillic, Greek or CJK characters print as ?. To print such text, register a TrueType family in code (no package ships a font file, so bring your own .ttf files) and name it as a style's fontFamily or the report's defaultFontFamily:

    // Blazor: DabblerReportPage measures and exports with it.
    builder.Services.AddDabblerReportFonts(fonts =>
        fonts.Register("Noto Sans", "fonts/NotoSans-Regular.ttf",
                       boldPath: "fonts/NotoSans-Bold.ttf"));
    
    // Directly: give the same ReportFonts to the measurer and the exporter.
    var fonts = new ReportFonts().Register("Noto Sans", "fonts/NotoSans-Regular.ttf");
    var measurer = new OpenPdfTextMeasurer(report, fonts);
    var exporter = new PdfExporter(report, fonts);
    

    Family names match case-insensitively. A registered family is embedded as a subset and draws every character its font has a glyph for. A bold, italic or bold-italic style uses the file registered for it, else the regular file. What it does not do: no synthetic bold or italic, no text shaping (complex scripts and ligatures are drawn glyph by glyph) and no right-to-left layout, nothing beyond U+FFFF (such characters draw as the font's missing glyph), and no fallback from one font to another for a character the font lacks.

  • License (this library): MIT (see LICENSE).

If this library stops being maintained

This package is MIT-licensed, and its source is in src/Libs/Dabbler.Reports.Export. If it stops being maintained, copy that source into your application, replace the package reference with a project reference to your copy, and own it from there. Keep the MIT license notice with the copied code.

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Dabbler.Reports.Export:

Package Downloads
Dabbler.Reports.Blazor

Blazor components for rendering and interacting with Dabbler Reports: ReportViewer, ParameterPromptForm, and PDF export integration. MIT-licensed. Note: this package takes a transitive dependency on DabblerPdf (LGPL-2.1-only OR MPL-2.0) via Dabbler.Reports.Core and Dabbler.Reports.Export; see THIRD-PARTY-NOTICES.txt for the canonical license text.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 101 11/13/2026
2.0.1 101 11/13/2026
2.0.0 100 11/13/2026
1.0.0 112 11/9/2026
0.1.0-preview.1 112 5/30/2026