ExcelRenderer 1.7.2
See the version list below for details.
dotnet add package ExcelRenderer --version 1.7.2
NuGet\Install-Package ExcelRenderer -Version 1.7.2
<PackageReference Include="ExcelRenderer" Version="1.7.2" />
<PackageVersion Include="ExcelRenderer" Version="1.7.2" />
<PackageReference Include="ExcelRenderer" />
paket add ExcelRenderer --version 1.7.2
#r "nuget: ExcelRenderer, 1.7.2"
#:package ExcelRenderer@1.7.2
#addin nuget:?package=ExcelRenderer&version=1.7.2
#tool nuget:?package=ExcelRenderer&version=1.7.2
ExcelRenderer
PDF output keeps ordinary text searchable, but supported ideographic variation sequences (IVS) are emitted as vector outlines so the selected format 14 glyph is preserved. Those outlined IVS characters are not searchable or copyable as text.
English | 日本語
Overview
ExcelRenderer is a .NET library for rendering Excel (.xlsx) worksheets as PDF documents or page-by-page PNG and SVG images.
It separates workbook parsing, layout, drawing-command generation, and output rendering into distinct stages:
Excel (.xlsx)
-> ReportDocument
-> RenderDocument
-> DrawCommand
-> PDF / PNG / SVG
This makes the rendering pipeline easier to test, understand, and extend with new layout behavior or output formats.
ExcelRenderer is currently an MVP and does not aim for pixel-perfect parity with Microsoft Excel.
Features
- Reads
.xlsxworkbooks with ClosedXML - Supports cell text, fonts, alignment, wrapping, fills, and borders
- Handles merged cells, hidden rows and columns, column widths, and row heights
- Honors print areas, page size, orientation, margins, and scaling settings
- Splits output into pages at row and column boundaries
- Renders worksheet PNG and JPEG images
- Renders header and footer text
- Produces PDF output with PDFsharp
- Produces one PNG image per page with SkiaSharp
- Produces one self-contained SVG per page with outlined text and embedded images
- Exports AI-friendly Markdown with merged-cell HTML, layout-aware reading order, formulas, and external images
Installation
Requirements
- .NET 10 SDK to build and test the repository
- A target framework compatible with .NET Standard 2.1 to consume the library
- Appropriate fonts installed or supplied through
PdfSharpFontResolver
The optional ExcelRenderer.Fonts package contains Noto Sans JP Regular TTF for
ordinary text, IPAmj Mincho for IVS rendering, and Noto Color Emoji. The ExcelRenderer library
does not depend on that package: install it alongside the library only when you
want those bundled resources and IVS fallback. Without it, the library uses
explicitly registered or system fonts. The CLI depends on this package and
installs it transitively. IVS rendering defaults to Gothic
(IPAmj Mincho when no bundled Gothic font supports the sequence). Set FontOptions.IvsFontStyle to
IvsFontStyle.Mincho, or pass --ivs-font-style mincho to the CLI, to use
IPAmj Mincho directly. See third-party notices.
Set FontOptions.ReplaceIvsWithBaseCharacter to true when the library should
render an ideographic variation sequence as its base character without the
variation selector instead of selecting its IVS glyph.
The library, optional fonts, and command-line tool are separate NuGet packages. After the corresponding packages are published to NuGet.org, install them using the commands below. The tool installs its font dependency automatically.
Library (NuGet)
Run this in your application's project directory (.NET Standard 2.1-compatible target required):
dotnet add package ExcelRenderer
dotnet add package ExcelRenderer.Fonts # optional Japanese fonts
ExcelRenderer is sufficient when your application provides its own fonts.
ExcelRenderer.Fonts adds only the bundled font resources; it is not required
to use the library API. The package includes Noto Sans JP Regular, IPAmj Mincho,
and Noto Color Emoji under their respective licenses. See
third-party notices for redistribution requirements.
Command-line tool (dotnet tool)
Install the .NET 10 SDK, then install the CLI from NuGet.org:
dotnet tool install --global ExcelRenderer.Tool
excelrenderer --help
The package name is ExcelRenderer.Tool; the executable command is excelrenderer.
The tool declares ExcelRenderer and ExcelRenderer.Fonts as dependencies, so
you do not need to install either package separately to use the CLI. These
commands assume NuGet.org is enabled in your NuGet sources.
To update an existing global installation:
dotnet tool update --global ExcelRenderer.Tool
For a project-local installation, run the following in the repository where you want to use the tool. Create the manifest only if one does not already exist:
dotnet new tool-manifest
dotnet tool install --local ExcelRenderer.Tool
dotnet tool run excelrenderer --help
Commit .config/dotnet-tools.json so other contributors can install the same tool version with dotnet tool restore.
Quick start
Convert a workbook with the CLI:
excelrenderer pdf input.xlsx -o output.pdf
excelrenderer image input.xlsx -o ./images
excelrenderer svg input.xlsx -o ./svg-output
excelrenderer md input.xlsx -o output.md
Or from C#, after adding the library:
await ExcelConverter.ConvertToPdfAsync("input.xlsx", "output.pdf");
Example output:
See Command-line usage, C# API (high-level), and C# API (low-level) for details.
Command-line usage
Syntax and commands
After installing ExcelRenderer.Tool, use the following syntax. input.xlsx is positional and -o is an alias for the required --output option:
excelrenderer <command> <input.xlsx> --output <path> [options]
The format-specific commands cover the common conversion cases:
excelrenderer pdf input.xlsx -o output.pdf
excelrenderer image input.xlsx -o ./images
excelrenderer svg input.xlsx -o ./svg-output
excelrenderer md input.xlsx -o output.md
| Command | Output | Command-specific options |
|---|---|---|
pdf |
One PDF file | --sheet <name> |
image |
One paginated PNG per worksheet page | --sheet <name>, --dpi <number> (default: 144) |
svg |
One self-contained SVG per worksheet page | --sheet <name> |
markdown / md |
One Markdown file and optional extracted images | --sheet, --image-dir, --[no-]images, --[no-]cell-addresses, --[no-]formulas, --[no-]layout-detection, --[no-]region-detection |
render |
PDF file, or a PNG/SVG/Markdown output directory | --format pdf\|png\|svg\|markdown plus selection, layout, diagnostics, manifest, and font-policy options |
Font options
Every command accepts these font-source options:
| Option | Meaning |
|---|---|
--font-dir <directory> |
Recursively search an additional directory. Repeat the option, or provide multiple values, to add directories. |
--font-file <file> |
Register a font file directly. Repeat the option, or provide multiple values; order is significant. Supported font content includes TrueType/OpenType .ttf, .tte, and .otf files. |
--fallback-font <family> |
Replace the default fallback-family list with the supplied families, in command-line order. Repeat it to specify a fallback chain. |
--no-system-fonts |
Do not search operating-system font directories. Explicit files, added directories, and bundled CLI fonts remain available. |
--font-policy bundled\|requested |
Choose whether bundled compatibility fonts (the default) or requested/explicit fonts take priority. |
--ivs-font-style gothic\|mincho |
Choose the bundled font style used for ideographic variation sequences (default: gothic). |
Font options affect glyph selection for PDF, PNG, and SVG. Markdown does not render glyphs, but accepts the same options so scripts can switch commands without changing their shared font arguments. Paths containing spaces must be quoted. For reproducible rendering in a container, for example:
excelrenderer pdf report.xlsx -o report.pdf \
--font-dir /app/fonts \
--font-file /app/company-fonts/ReportSans.ttf \
--fallback-font "Noto Sans JP" \
--fallback-font "Liberation Sans" \
--no-system-fonts
Run excelrenderer --help to list commands and excelrenderer <command> --help for the complete, current option list.
Continuous image layout
The unified render command can generate a single continuous image per selected worksheet without print-page margins, breaks, titles, or headers:
excelrenderer render input.xlsx -o ./continuous-images --format svg --image-layout continuous
Continuous layout is available only for PNG and SVG, cannot be combined with --pages, and uses the sheet's used range rather than its print area unless an explicit range is supplied. PNG continuous output defaults to a 100 million-pixel limit (about 381 MiB for an RGBA bitmap before encoder overhead); set RenderRequest.MaxPngPixels only to a safe finite value when larger canvases are required.
Explicit ranges, trimming and cell hyperlinks
Use render for range selection and content trimming:
excelrenderer render input.xlsx -o report.pdf --format pdf \
--sheet "売上 2026" --range "'売上 2026'!B2:F40" \
--trim --trim-padding 2 --hyperlinks preserve --manifest report.json
excelrenderer render input.xlsx -o images --format png \
--sheet Sheet1 --range B2:F40 --image-layout continuous --trim
excelrenderer render input.xlsx -o svg --format svg --sheet Sheet1 --range B2:F40 --trim
excelrenderer render input.xlsx -o markdown --format markdown --hyperlinks preserve
| Option | Behavior |
|---|---|
--range |
Repeat once per selected sheet. Accepts a single A1 cell or forward rectangle, $ and lowercase letters. Quote sheet names with spaces; escape an apostrophe as ''. Unqualified ranges require exactly one selected sheet. |
--max-range-cells |
Positive total limit for explicitly selected rectangles, default 1,000,000. Includes empty cells; this is a processing limit, not a memory guarantee. |
--trim |
Crop each already paginated page or continuous canvas around visible drawing bounds without reflowing or rescaling content. |
--trim-padding |
Nonnegative finite padding in points, default 2; requires --trim. |
--hyperlinks preserve\|none |
Default preserve; also available on pdf and markdown/md. none retains display text and formatting without hyperlink diagnostics, anchors or link lists. |
A range replaces that sheet's print areas, preserves paper, margins, scaling and page order, and intersects repeated print titles with the selection. Ranges never select additional sheets. Entire rows/columns, unions, names, reversed ranges and external/3D references are rejected. A continuous image uses the explicit rectangle without expansion by outside objects. Partially selected merges retain their original measurement, alignment and borders and are clipped, with a ClippedMergedCell warning. --pages selects document page numbers after range pagination and before trimming. Hidden-only selections keep an empty page/canvas.
Trimming includes visible fills (including explicitly white fills), strokes, positioned text, images, shapes and headers/footers. Font glyph bounds are used where available; emoji and compatibility glyphs use conservative finalized logical bounds. This is drawing-bound cropping, not pixel-based removal of white or transparent areas inside images. An empty trimmed page remains 1×1pt plus padding (5×5pt by default), with EmptyContent information. PNG dimensions use ceiling at the requested DPI, and RenderRequest.MaxPngPixels applies to both page and continuous output before bitmap allocation.
PDF and Markdown preserve http, https, mailto and same-workbook cell links, including range references, empty source cells, simple scoped A1 names, and literal-string HYPERLINK formulas. Explicit XML definitions take precedence over formulas. Cached displays are retained; uncached supported formulas use the literal friendly name or location without general formula recalculation. PDF annotations are attached to the final merged document and follow page selection and trimming. Markdown uses stable xl-sN-rN-cN anchors and explicit target/source lists where a blank cell or source range cannot carry a natural label. PNG and SVG retain cell appearance without clickable links or hyperlink warnings. SVG links and link sidecars are not generated.
Unsafe URIs (including local files, relative paths, UNC, embedded HTTP credentials, control characters and unsupported schemes), conflicting definitions and unsupported dynamic formulas retain display text and yield HyperlinkRejected/HyperlinkUnsupported warnings. Missing or omitted internal destinations yield HyperlinkTargetOmitted; excluded sources do not produce destination warnings. Diagnostics omit URI/recipient/query contents. Readable invalid link definitions are warnings; a corrupt workbook rejected by ClosedXML remains a fatal input error. Strict mode or matching --warnings-as-errors stops output before the sink opens. The PDF CLI creates/truncates its file only after preflight; identical input/output paths are rejected before reading.
The stream API exposes the same options without changing existing positional constructors:
var request = new RenderRequest
{
OutputFormat = OutputFormat.Pdf,
Selection = new SelectionOptions
{
SheetNames = new[] { "Sheet1" },
Ranges = new[] { new SheetRangeSelection("Sheet1", new CellRange(new(2, 2), new(40, 6))) },
MaxRangeCells = 1_000_000,
},
Trim = new TrimOptions { Enabled = true, PaddingPoints = 2 },
Hyperlinks = HyperlinkMode.Preserve,
};
Import ExcelRenderer.Rendering and ExcelRenderer.Model for these settings. PDF/Markdown legacy options also expose Hyperlinks. Markdown rejects ranges, trimming and page selection before output. With no ranges or trim, page dimensions and existing layout stay unchanged. Schema-version-1 manifests add optional page/range/crop metadata: widths/heights describe final output, while original dimensions and crop coordinates describe the page before trim. Missing range means existing print/used-range selection; missing crop/padding means identity translation. No link targets or full tooltips are listed in manifests.
C# API (high-level)
After installing ExcelRenderer, the facade API performs the complete read, layout, render, and write pipeline:
using ExcelRenderer;
await ExcelConverter.ConvertToPdfAsync("input.xlsx", "output.pdf");
await ExcelConverter.ConvertToImagesAsync("input.xlsx", "./images");
await ExcelConverter.ConvertToSvgAsync("input.xlsx", "./svg-output");
await ExcelConverter.ConvertToMarkdownAsync("input.xlsx", "output.md");
For stream-based integrations, RenderAsync reads from the input's current position and leaves both
the input stream and a SingleStreamOutputSink output stream open. Use DirectoryOutputSink for
page-by-page PNG/SVG output. RenderRequest selects sheets by exact name (in request order) and
can select rendered PDF/PNG/SVG document pages; Markdown does not support page selection.
ConversionManifest.WriteAsync writes the completed artifact metadata and diagnostics as schema
version 1 JSON with relative artifact names.
PDF export skips images when Skia cannot create a codec or decode a bitmap, and reports
ImageDecodeFailed warnings. Diagnostics include the sheet, source page, image bounds,
byte length, up to 16 header bytes, and the decode failure reason. The render command
prints warnings to stderr; use --manifest report.json to save these details as JSON.
Strict mode or treating ImageDecodeFailed as an error stops conversion instead.
Low-level PdfSharpRenderer callers can receive warnings through DiagnosticHandler;
warnings are also written to System.Diagnostics.Trace listeners.
Use PdfExportOptions, ImageExportOptions, SvgExportOptions, and MarkdownExportOptions to select a worksheet or configure format-specific behavior. Existing output files, and non-empty image or SVG output directories, are not overwritten.
C# API (low-level)
Install the ExcelRenderer package or reference the project, then run the workbook through the layout and rendering pipeline:
using ExcelRenderer.Drawing;
using ExcelRenderer.Excel;
using ExcelRenderer.Layout;
using ExcelRenderer.PdfSharp;
var document = new ExcelReader().Read("report.xlsx");
var sheet = document.Sheets[0];
var layoutEngine = new ReportLayoutEngine(new PdfSharpTextMeasurer());
var renderDocument = layoutEngine.Layout(sheet);
var commands = new DrawCommandGeneratorPass().Generate(renderDocument);
using var output = File.Create("report.pdf");
new PdfSharpRenderer().Render(commands, sheet.PageSettings, output);
ExcelReader preserves whether an xlsx uses an explicit percentage or Fit-to-pages in
PageSettings.ScaleMode. Fit-to-pages never enlarges content beyond 100%. When constructing
PageSettings directly, leaving ScaleMode unset preserves the legacy rule that a positive
Scale wins; opt in explicitly when a fit count must override the positional default scale:
var settings = new PageSettings(FitToPagesWide: 1)
{
ScaleMode = PrintScaleMode.FitToPages,
};
For xlsx input, explicit and default raw column widths are converted at the fixed Excel
reference DPI of 96; output PNG DPI does not change sheet geometry. The Normal style is resolved
through its style XF and theme major/minor font before measuring digits 0–9 with the configured
font manager. If that font cannot be measured, a 7px compatibility width is used and
MaximumDigitWidthFallback is reported through conversion diagnostics.
Distinct print areas are paginated independently without filling their bounding rectangle. Explicit-scale output honors saved row and column page breaks and the worksheet page order; Fit-to-pages ignores manual breaks. The combined pages are renumbered once across all areas, so page fields and PDF/PNG/SVG page selection use the same sequence. Objects intersecting more than one page are placed from the same source geometry on each page and clipped to that page's body viewport rather than merely to the physical paper. Saved horizontal and vertical centering moves cells, objects, and their body clip together; continuous output intentionally ignores print setup. Cell indentation, content padding, ordinary rotation, and stacked top-to-bottom text are carried into PDF, PNG, and SVG drawing.
Wrapped cell text is finalized during layout into lines and resolved font runs, including
grapheme-safe forced breaks and explicit-newline markers. The result is carried by the draw
command. PDF, PNG, and SVG consume the finalized effective font size, per-line baseline and
height, selected run font, and logical run X/advance instead of independently wrapping,
shrinking, or advancing the text. Commands created directly without a TextLayout retain the
legacy renderer-side compatibility path.
On that compatibility path, PNG and SVG select one Skia system face from the requested family,
weight, and slant and retain that same face for measurement, wrapping, shrinking, and drawing.
TextLayoutResult.EffectiveFontSize preserves a compatibility distinction: results created with
the original two-argument constructor use the command style size, while an explicitly assigned zero
suppresses drawing. PDF and Skia reuse the physical face selected for each finalized run, including
memory-backed faces. Finalized underlines are drawn once from the stored line origin, baseline, and
width; PDF font decoration is disabled on that path so it cannot produce a second underline.
DrawingML picture metadata preserves and resolves one-cell, two-cell, and absolute anchors in points together
with marker offsets, extents, editAs, source crop, rotation, flips, and worksheet drawing order.
Source crop is applied by both renderer backends without changing the destination bounds.
To render the same commands as page-by-page PNG files:
using ExcelRenderer.SkiaSharp;
new PngRenderer().Render(
commands,
sheet.PageSettings,
pageNumber => File.Create($"report-{pageNumber}.png"),
dpi: 144);
To render one self-contained SVG file per page, with dimensions and coordinates in PDF points:
new SvgRenderer().Render(
commands,
sheet.PageSettings,
pageNumber => File.Create($"report-{pageNumber}.svg"));
SVG text is converted to vector paths so the viewer does not need the source font. This intentionally prevents text search and copy; it does not prevent editing. Raster images are embedded in each SVG. Text shaping has the same limitations as PNG rendering, and complex scripts or color/bitmap-only glyphs are not guaranteed.
To convert an entire workbook to Markdown and extract its images:
using ExcelRenderer.Markdown;
await ExcelMarkdownConverter.ConvertAsync("sample.xlsx", "output");
This creates output/sample.md and image files under output/images. Use
MarkdownExportOptions to control formula/address metadata, hidden rows and columns,
nearby image text, layout analysis, and image export. Markdown export consumes the
same ReportDocument model as the renderers and does not alter the PDF/PNG pipeline.
Fonts
When loading the optional bundled fonts, ExcelRenderer looks for each expected
file name (NotoSansJP-Regular.ttf, ipamjm.ttf, and NotoColorEmoji.ttf) in
this order:
- Embedded resources in
*.dllfiles directly besideExcelRenderer.dll. A resource name must equal the font file name or end with.plus that name. DLLs are checked in ordinal path order; DLLs that cannot be loaded or inspected are skipped. - Loose files with the exact font file name anywhere in the directory
containing
ExcelRenderer.dllor its subdirectories. If several match, the first path in ordinal order is used.
An embedded resource takes precedence over a loose file. The DLL search is not recursive; only the loose-file search includes subdirectories.
using ExcelRenderer.PdfSharp;
using PdfSharp.Fonts;
GlobalFontSettings.FontResolver = new PdfSharpFontResolver(
"Noto Sans JP",
"/app/fonts/NotoSansJP-Regular.ttf");
All commands accept the font options described above. --font-file reads each
font directly and registers its internal family and style; supported TrueType/OpenType content can
therefore be supplied as .ttf, Windows EUDC .tte, or .otf without relying on its extension.
For example: --font-file /app/fonts/report.ttf --font-file C:\Windows\Fonts\EUDC.TTE.
For BMP private-use characters (U+E000–U+F8FF), the requested font is tried first, followed by
these files in command-line order and then normal family fallbacks. If none contains the glyph,
MissingPrivateUseGlyph is reported and U+FFFD is rendered; --strict and
--warnings-as-errors MissingPrivateUseGlyph can make this a conversion failure. Font files must
be readable and valid, and users are responsible for their licenses and PDF embedding rights.
The option has no effect on Markdown output because Markdown does not render glyphs.
bundled is the default for compatibility;
requested prioritizes registered and supplied font directories before configured fallbacks and the
bundled font. Font fallback is selected per Unicode text element, so surrogate pairs and combining
sequences are not split.
Architecture
ExcelRenderer converts a workbook to ReportDocument, RenderDocument, and DrawCommand, then renders PDF, PNG, or SVG.
Excel (.xlsx) -> ReportDocument -> RenderDocument -> DrawCommand -> PDF / PNG / SVG
See Architecture for the layout passes, drawing commands, renderers, extension points, and source layout.
Current limitations
- Charts are not supported.
- Formula behavior and conditional formatting are not reproduced completely.
- Not every paper size or header/footer formatting code is supported.
- Page breaks occur only at row and column boundaries.
- Japanese top-to-bottom mode stacks Unicode text elements; it does not yet select full typographic vertical glyph variants or reproduce every Japanese line-breaking rule.
- Drawing anchors are resolved on print-area-independent sheet geometry. XML row/column overrides outside the used and print ranges are retained, and hidden rows/columns occupy 0 pt. The latter anchor behavior has not been verified against desktop Excel. Repeated titles do not repeat drawing objects.
- Output can differ from Excel because font measurement and rendering engines differ.
PDF performance
The stream converter draws all pages directly into one PDF document and saves once. Native font faces, line metrics and PDF fonts are reused within each conversion; native faces are disposed on success, cancellation and failure. Unused Skia font strikes are purged at conversion end to release retained native font data. Text caches are bounded. Sparse sheet coordinates, page candidates and merged-cell queries use indices, and equal converted styles share immutable values. Styled blank cells remain part of the model.
The converter plans page bands first, selects pages in document order, and preflights
all selected output dimensions, trimming and links before opening any output sink.
It then generates and writes one page at a time. Paginated output uses two page
passes; public ReportLayoutEngine.Layout remains a materializing compatibility API.
Continuous PNG/SVG rescans cells by drawing layer, preserving backgrounds, borders,
text and object order without keeping all commands. Markdown retains its existing path.
Selected-sheet body models and drawing-range projection reduce retained models. OS and additional-directory font scans retain metadata; a physical face's bytes and SHA256 identity are loaded once when first selected. Explicit font files and registrations are validated and snapshotted immediately. Optional font-pack data is also loaded on demand. An OS font is not a complete snapshot until its first selection; a file that changes or disappears before that read raises a font load error. PDFsharp's process-wide resolved font-byte cache remains in place.
PDFsharp still retains its final document and resources until the single save. ClosedXML still reads the whole workbook. Layout geometry and selected models also scale with workbook size. This is not constant-memory streaming. See the phase 3 measurements and the historical PDF and image reports.
PNG and SVG performance and buffering
PNG encoding uses the existing bitmap pixels. Page output keeps one bitmap at a time;
continuous PNG remains one worksheet per PNG with one full bitmap, not scanline or tiled
encoding. Its RGBA pixels require approximately 4 × width × height bytes plus alignment
and encoder overhead. Both PNG APIs validate dimensions and enforce their pixel limit.
A conversion-local image cache estimates decoded resource memory and uses a 64 MiB LRU
budget; an image exceeding that budget is owned only during its active draw. PDFsharp's
own retained document image resources are additional to that estimate.
SVG keeps Skia's SVG canvas and streaming XML normalization (outlined text, embedded
images, point dimensions, and viewBox). Its seekable intermediate buffer spills before
exceeding the configured memory capacity. Skia may also buffer native SVG data, so the
stream threshold does not bound the whole conversion's memory.
RenderRequest.Buffering, SvgExportOptions.Buffering, and overloads of
SvgRenderer.Render, RenderPage, and RenderCanvas accept RenderBufferOptions:
| Property | Default | Meaning |
|---|---|---|
MemoryThresholdBytes |
8,388,608 | Maximum intermediate memory capacity in bytes. |
AllowTemporaryFiles |
true |
Spill once to a temporary file above the threshold; when false, reject excess data. |
TemporaryDirectory |
null |
System temp directory, or the specified existing directory. |
The render and svg CLI commands expose --buffer-memory-threshold (bytes),
--no-buffer-temp, and --buffer-temp-directory:
excelrenderer render input.xlsx -o ./svg --format svg --buffer-memory-threshold 8388608
excelrenderer svg input.xlsx -o ./svg --buffer-memory-threshold 1048576 --buffer-temp-directory ./existing-temp
These options affect only the SVG intermediate stream, even when passed with PDF/PNG.
They are independent of WorkbookInputOptions: input buffering now spools to a seekable
temporary file when its own threshold is exceeded and temporary files are allowed.
Readers use independent cursors without converting the spool back to a byte array.
Temporary buffers are cleaned up on success, cancellation, and failures; caller-owned
input and output streams stay open. Heavy native drawing, encoding, and ClosedXML load
operations cannot be interrupted immediately.
Development
To try the CLI from source before publishing, create and install a local package:
dotnet pack src/ExcelRenderer.Tool/ExcelRenderer.Tool.csproj -c Release -o artifacts/packages
dotnet pack src/ExcelRenderer/ExcelRenderer.csproj -c Release -o artifacts/packages
dotnet pack src/ExcelRenderer.Fonts/ExcelRenderer.Fonts.csproj -c Release -o artifacts/packages
dotnet tool install --tool-path ./artifacts/tool-test --add-source ./artifacts/packages ExcelRenderer.Tool
./artifacts/tool-test/excelrenderer --help
Run the test suite from the repository root:
dotnet test ExcelRenderer.slnx
Production code is under src/ExcelRenderer, and tests are under tests/ExcelRenderer.Tests.
Documentation
License
ExcelRenderer is available under the MIT License.
The optional ExcelRenderer.Fonts package contains the Japanese fonts and their
separate license texts; see Third-party notices.
Resolved fonts used by PDF output are snapshotted and cached for the process lifetime, matching PDFsharp's global resolver lifetime. This avoids repeated font-file reads and hashing during wrapped-text measurement; applications should therefore use a bounded, stable set of font faces.
| Product | Versions 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 was computed. 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 was computed. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- ClosedXML (>= 0.105.1)
- DocumentFormat.OpenXml (>= 3.3.0)
- PDFsharp (>= 6.2.3)
- SkiaSharp (>= 4.151.0)
- SkiaSharp.NativeAssets.Linux (>= 4.151.0)
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 |
|---|---|---|
| 1.11.2 | 102 | 11/16/2026 |
| 1.11.1 | 106 | 11/15/2026 |
| 1.11.0 | 100 | 11/14/2026 |
| 1.10.5 | 171 | 11/11/2026 |
| 1.10.4 | 128 | 10/22/2026 |
| 1.10.3 | 112 | 10/21/2026 |
| 1.10.2 | 118 | 10/20/2026 |
| 1.10.1 | 107 | 10/19/2026 |
| 1.10.0 | 112 | 10/18/2026 |
| 1.9.2 | 96 | 10/17/2026 |
| 1.9.1 | 110 | 10/17/2026 |
| 1.9.0 | 112 | 10/16/2026 |
| 1.8.0 | 107 | 10/9/2026 |
| 1.7.2 | 113 | 10/7/2026 |
| 1.7.1 | 104 | 10/7/2026 |
| 1.7.0 | 109 | 10/7/2026 |
| 1.6.10 | 116 | 10/5/2026 |
| 1.6.9 | 116 | 10/4/2026 |
| 1.6.8 | 118 | 10/4/2026 |
| 1.6.7 | 125 | 10/3/2026 |