Sigillon.Cli
0.2.0
dotnet tool install --global Sigillon.Cli --version 0.2.0
dotnet new tool-manifest
dotnet tool install --local Sigillon.Cli --version 0.2.0
#tool dotnet:?package=Sigillon.Cli&version=0.2.0
nuke :add-package Sigillon.Cli --version 0.2.0
Sigillon CLI
Command-line tool for Sigillon — an independent Microsoft Word layout and rendering engine for .NET.
Sigillon parses OOXML, computes layout itself, and paints pages that match Word to the pixel. No Word install, no Office automation, Linux-first.
Installation
Install as a global .NET tool:
dotnet tool install --global Sigillon.Cli
To update:
dotnet tool update --global Sigillon.Cli
Usage
Single Document
Render a DOCX file to PDF:
sigillon render input.docx output.pdf
Deterministic / Linux Font Configuration
For production and Linux environments, specify a directory of licensed/pinned fonts and disable system font discovery:
sigillon render input.docx output.pdf --font-dir /opt/docx-fonts --no-system-fonts
Font Report and Strict Fonts
The face that answers a font is not always of the family the document names: a built-in alias renames a few legacy names (such as Helv to Arial), and a family the fonts do not have is answered through the document's own alternate, a stand-in such as Liberation Sans for Arial, or the final fallback to Arial or Times New Roman. Write what each render resolved, and refuse a document whose fonts would be substituted:
sigillon render input.docx output.pdf --font-dir /opt/docx-fonts --no-system-fonts \
--font-report fonts.json --strict-fonts
For a refused document no PDF is written and the exit code is 2; its font report still names every substituted request. In batch mode, --font-report writes one JSON line per list entry, keyed by the entry's line index and the document's SHA-256 rather than its path. Reports carry family and face names only, never the document's text.
Batch Rendering
Render multiple documents at once using a list file:
sigillon render --batch list.txt --out-dir ./output
Command Options
render <input.docx> <output.pdf>: Render a DOCX file to PDF.--batch <listfile>: Path to a text file with one DOCX file path per line.--out-dir <dir>: Output directory for batch renders.--font-dir <dir>: Path to font directory with TTF, OTF, or TTC files (repeatable).--no-system-fonts: Disables host font discovery for deterministic rendering across environments.--portable-metafiles: Use portable metafile (WMF) decoder across platforms.--layout-trace <file.jsonl>: Output layout trace diagnostics in JSONL format.--font-report <path>: Write the fonts each render resolved, and which were substituted, as JSON; in batch mode, one JSON line per list entry.--strict-fonts: Refuse a document whose fonts would be substituted; no PDF is written and the exit code is 2.
Docker
Run Sigillon CLI via Docker without installing .NET on the host:
docker run --rm \
-v "$PWD/docs:/docs:ro" -v "$PWD/out:/out" -v "/opt/docx-fonts:/fonts:ro" \
sigillon render /docs/input.docx /out/output.pdf \
--font-dir /fonts --no-system-fonts
.NET Library
To use Sigillon as a library inside your .NET application, install the Sigillon package.
Documentation & Repository
For complete documentation, roadmap, architecture details, and issue tracking, visit the Sigillon GitHub repository.
Licensing
Licensed under the GNU Affero General Public License v3 (AGPL-3.0-only).
Commercial licensing options are available for proprietary use; see COMMERCIAL.md.
| Product | Versions 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. |
This package has no dependencies.