Skip to content
@Papyrine

Papyrine

Papyrine

.NET libraries and tools for creating, converting, and rendering documents — Word, Excel, Markdown, and diagrams — alongside supporting libraries for geospatial maps and icons. Several build directly on DocumentFormat.OpenXml, and many compose with each other to form a small document-tooling ecosystem.

The name

PapyrinePAP-ih-rin (/ˈpæpɪrɪn/): "PAP" as in pap, a short i, and "-rin" rhyming with bin.

From Latin papyrus (paper / papyrus plant) + the suffix -ine (meaning "of, relating to, or resembling"). Fittingly, Papyrine is a family of libraries for creating and transforming documents: the modern descendants of the papyrus scroll.

Projects

Document generation

Project NuGet Description
Excelsior NuGet Data-driven Excel (.xlsx) generation and reading from .NET models, with attribute- and fluent-based column configuration, styling, formulas, HTML cells, and round-trip deserialization. Also ships a Word table generator.
Parchment NuGet Word (.docx) generation from a .NET model plus a Liquid-driven docx or Markdown template — token substitution, loops, conditionals, and HTML/Markdown/table content blocks.

Conversion & rendering

Project NuGet Description
Morph NuGet Renders Word .docx documents or HTML to PNG images. No Microsoft Word dependency; cross-platform, with SkiaSharp and fully-managed ImageSharp backends.
OpenXmlHtml NuGet Converts HTML into native OpenXml elements for embedding in .xlsx and .docx files — rich text, tables, lists, images, and CSS-to-Word style mapping, with no altChunk.
Naiad NuGet Renders Mermaid diagrams to SVG. No browser or JavaScript runtime required; supports 25+ diagram types and Iconify/FontAwesome icon packs.
PandocNet NuGet Converts documents between formats via Pandoc — wraps pandoc.exe with CliWrap and exposes strongly-typed options per format, for text, stream, and file conversions.

Geospatial

Project NuGet Description
GeoConvert NuGet Converts maps between geospatial vector formats — GeoJSON, TopoJSON, Shapefile, FlatGeobuf, KML/KMZ, GPX, WKT/WKB, CSV, and GeoParquet — plus PNG export. No third-party dependencies; ships as a library and a geoconvert command-line tool.
MapBundle NuGet Bundled, offline map data for .NET — borders, cities, waterways, and base layers shipped as FlatGeobuf inside per-region NuGet packages. Data from OpenStreetMap and Natural Earth; layers are returned as GeoConvert feature collections.

Low-level & building blocks

Project NuGet Description
OpenXmlStreaming NuGet Forward-only writer for .docx/.xlsx/.pptx that streams directly to non-seekable targets (HTTP responses, cloud uploads) without buffering the whole package in memory.
IconifyBundle NuGet Strongly-typed Iconify icons for .NET. A source generator bundles only the icons you reference — baked into the assembly (Resource mode) or written to build output as .svg files (Disk mode) — with Blazor helpers included.

Tools

Project NuGet Description
MsOfficeDiff NuGet
NuGet
A pair of .NET global tools — diffword and diffexcel — that compare two Word documents or Excel workbooks side by side using Microsoft Office's built-in comparison features. Windows-only; requires the relevant Office app installed.

How they fit together

  • Excelsior uses OpenXmlHtml to render HTML cell content.
  • Parchment uses OpenXmlHtml for HTML chunks and Excelsior for embedded Word tables.
  • Morph uses OpenXmlHtml when rasterizing HTML content.
  • MapBundle builds on GeoConvert, returning its bundled layers as GeoConvert feature collections.

The result is a layered stack: low-level plumbing and shared assets at the bottom (OpenXmlHtml, OpenXmlStreaming, IconifyBundle), document generators in the middle (Excelsior, Parchment), and conversion/rendering on top (Morph, Naiad, PandocNet). The geospatial pair (GeoConvert → MapBundle) and the diff tooling (MsOfficeDiff) stand alongside as self-contained sub-families.

Popular repositories Loading

  1. PandocNet PandocNet Public

    Conversion of documents in .net via Pandoc.

    C# 93 14

  2. Excelsior Excelsior Public

    Excelsior is a Excel spreadsheet generation library with a distinctive data-driven approach.

    C# 76 3

  3. Naiad Naiad Public

    A .NET library for rendering Mermaid diagrams to SVG. No browser or JavaScript runtime required.

    C# 75 4

  4. Morph Morph Public

    Converts Microsoft Word DOCX documents into PNG images.

    C# 23

  5. Parchment Parchment Public

    Parchment is a Word (.docx) document generation library with support for rendering from a templated word doc or a markdown doc

    C# 17

  6. MsOfficeDiff MsOfficeDiff Public

    A .NET tool that compares two Word/Excel documents side by side using the Word/Excel built-in document comparison feature.

    C# 12 1

Repositories

Showing 10 of 12 repositories

Top languages

Loading…

Most used topics

Loading…