EricksonLopez.Printing
dotnet-printing · Integrations & Protocols
On this page (20 sections)
1. Identity, Tier & Maturity Profile#
2. Value Proposition & Problem Solved#
High-performance, Native AOT-ready .NET printing ecosystem for ESC/POS thermal receipts and Zebra ZPL II industrial labels over TCP socket pooling, RS-232 serial, and SignalR cloud-to-edge bridge.
Windows Print Spooler and System.Drawing lock POS/warehouse printing to Windows desktop drivers and throw unhandled SocketException/IOException errors on paper-out or offline printers.
3. Quick Install#
Primary package: EricksonLopez.Printing
dotnet add package EricksonLopez.Printing --version 1.0.0<PackageReference Include="EricksonLopez.Printing" Version="1.0.0" /><PackageVersion Include="EricksonLopez.Printing" Version="1.0.0" />4. Verified Ecosystem Metrics#
Snapshot retrieved UTC: 2026-12-01
5. When to Use & When Not to Use#
When to use
- You print ESC/POS thermal receipts or Zebra ZPL II labels cross-platform over TCP pooling, RS-232 serial, or SignalR bridges using Result<bool>.
When NOT to use
- You are generating multi-page PDF business reports or desktop laser documents.
6. Core Capabilities & Design Invariants#
ESC/POS, ZPL II & Managed Imaging
Pure managed C# monochrome Floyd-Steinberg dithering with zero SkiaSharp or System.Drawing native dependencies.
Pooled TCP, Serial & Status Telemetry
Supports PooledTcpPrinterClient, RS-232 serial ports, SignalR edge bridge, and DLE EOT paper/cover sensor checks.
7. Included NuGet Packages & Adapters#
| Package ID | Status | NuGet / Local | TFMs | AOT Status | Downloads | Description |
|---|---|---|---|---|---|---|
| EricksonLopez.PrintingPrimary | Published | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Full | 258 | Foundational abstractions and network socket printer drivers for thermal receipt and industrial label printing. Features functional result handling and Native AOT compatibility. |
| EricksonLopez.Printing.EscPos | Published | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Full | 177 | Epson ESC/POS thermal receipt command compiler for .NET. Builds POS receipts, text styles, barcodes (Code128), QR codes, cash drawer triggers, and partial paper cuts with Native AOT compatibility. |
| EricksonLopez.Printing.Zpl | Published | v1.0.0 / v2.1.0 | net8.0, net9.0, net10.0 | AOT: Full | 152 | Zebra Programming Language (ZPL II) industrial barcode and label generator for .NET. Supports high-resolution text, boxes, Code128 barcodes, and QR codes with Native AOT compatibility. |
| EricksonLopez.Printing.SignalR | Published | v1.0.0 / v3.0.0 | net8.0, net9.0, net10.0 | AOT: Incompatible | 145 | Real-time SignalR hardware print bridge for EricksonLopez.Printing. Dispatches print jobs to local edge printer agents via ASP.NET Core SignalR hubs. |
| EricksonLopez.Printing.EscPos.Imaging | Published | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Full | 143 | High-performance monochrome image processing and raster bit image generator for ESC/POS thermal receipt printers. Native AOT-compatible compatible with zero external native dependencies. |
| EricksonLopez.Printing.Serial | Published | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Full | 142 | Serial COM / RS-232 / Virtual COM port transport driver for thermal receipt and label printers. |
| EricksonLopez.Printing.EscPos.Status | Published | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Full | 141 | Real-time hardware status monitoring, sensor telemetry, and parsing for ESC/POS thermal receipt printers. Native AOT-compatible compatible. |
| EricksonLopez.Printing.Zpl.Imaging | Published | v1.0.0 / v2.0.0 | net8.0, net9.0, net10.0 | AOT: Full | 139 | High-performance monochrome image processing and ^GF Graphic Field generator for Zebra ZPL II industrial label printers. Native AOT-compatible compatible with zero external native dependencies. |
8. Quick Start Code Example#
Grounded in verified public APIs from EricksonLopez.Printing. Compile with `<ImplicitUsings>disable</ImplicitUsings>` and explicit imports.
using EricksonLopez.Printing;
using EricksonLopez.Printing.EscPos;
using var builder = new EscPosBuilder();
IPrintDocument document = builder
.Initialize()
.Align(EscPosAlignment.Center)
.DoubleSize()
.Line("METROPOLITAN MARKET")
.FontSize(widthMultiplier: 1, heightMultiplier: 1)
.Align(EscPosAlignment.Left)
.Divider(width: 42, character: '-')
.TableRow("1 Artisan Sourdough Loaf", "$6.50", totalWidth: 42, fillChar: '.')
.Cut()
.Build();9. Architecture & Dependency Flow#
Rendering diagram…
flowchart LR lib_printing["EricksonLopez.Printing (L3)"] lib_result["EricksonLopez.Result (L0)"] lib_printing --> lib_result
View accessible text summary and structure
1 upstream library dependencies and 0 downstream dependent libraries verified in dependencies.json.
| Direction | Library | Tier | Relationship Kinds |
|---|---|---|---|
| Upstream | EricksonLopez.Result | L0 | Compile-Time, NuGet Package |
flowchart LR
lib_printing["EricksonLopez.Printing (L3)"]
lib_result["EricksonLopez.Result (L0)"]
lib_printing --> lib_result10. Target Frameworks & Native AOT / Trimming Matrix#
MSBuild `.csproj` inspection across 8 packages: 7 Full, 0 Partial, 1 Incompatible, 0 NotApplicable (analyzers/generators).
| Package ID | IsAotCompatible | EnableTrimAnalyzer | Verified AOT Status | Target Frameworks |
|---|---|---|---|---|
| EricksonLopez.Printing | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.EscPos | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.Zpl | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.SignalR | false | false | Incompatible | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.EscPos.Imaging | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.Serial | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.EscPos.Status | true | true | Full | net8.0, net9.0, net10.0 |
| EricksonLopez.Printing.Zpl.Imaging | true | true | Full | net8.0, net9.0, net10.0 |
11. Upstream Dependencies & Downstream Dependents#
Upstream Dependencies (1)
Downstream Dependents (0)
No other EricksonLopez.* libraries currently depend on this family.
12. Optional Adapters & Third-Party Integrations#
Internal Adapter Edges & Integration Packages
No optional cross-family adapter edges or integration packages are recorded for this library.
Verified External NuGet Dependencies (4)
13. Configuration & DI Registration Summary#
Verified DI & Configuration Entry Points
PrintingSerialServiceCollectionExtensions.AddKeyedSerialPrinterRegisters a keyed `SerialPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingSerialServiceCollectionExtensions.AddSerialPrinterRegisters a `SerialPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddKeyedPooledTcpPrinterRegisters a keyed persistent `PooledTcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddKeyedTcpPrinterRegisters a keyed `TcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddPooledTcpPrinterRegisters a persistent `PooledTcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingServiceCollectionExtensions.AddTcpPrinterRegisters a `TcpPrinterClient` as a `ServiceLifetime.Singleton` `IPrinterClient` in the service collection.
PrintingSignalRServiceCollectionExtensions.AddPrintingSignalRRegisters `ITenantPrintScopeValidator`, `IHubPrinterDispatcher`, and SignalR dependencies in the service collection.
Key Public Types & Contracts
EricksonLopez.Printing.IPrintDocument (interface)Defines a print document payload containing raw printer control sequences.
EricksonLopez.Printing.IPrinterClient (interface)Defines a client driver capable of transmitting print documents to a physical or network printer.
EricksonLopez.Printing.PooledTcpPrinterClient (class)Provides high-throughput network socket printing using a persistent TCP connection.
EricksonLopez.Printing.PrintingErrorCodes (class)Provides standard error code constants produced by the printing infrastructure.
EricksonLopez.Printing.PrintingEventIds (class)Provides pre-allocated logging event identifiers for structured telemetry.
EricksonLopez.Printing.PrintingSerialServiceCollectionExtensions (class)Provides extension methods for registering serial printing services in an `IServiceCollection`.
EricksonLopez.Printing.PrintingServiceCollectionExtensions (class)Provides extension methods for registering TCP printing services in an `IServiceCollection`.
EricksonLopez.Printing.RawPrintDocument (class)Represents an in-memory print document backed by a raw byte array.
EricksonLopez.Printing.ResilientPrinterClient (class)Provides resilient retry and exponential backoff capabilities by decorating an underlying `IPrinterClient`.
EricksonLopez.Printing.ResilientPrinterOptions (class)Specifies configuration options for resilient print operations and retry policies.
EricksonLopez.Printing.ResilientPrintingExtensions (class)Provides extension methods for decorating printer clients with resilience and retry capabilities.
EricksonLopez.Printing.SerialPrinterClientOptions (class)Specifies configuration options for communicating with a POS receipt or label printer over a serial COM or RS-232 port.
14. Verified Performance Benchmarks#
All verified measurements below come strictly from `BenchmarkDotNet.Artifacts` running on .NET RyuJIT (0 NativeAOT benchmark runs exist in this snapshot).
No non-MEGA-AUDIT `BenchmarkDotNet.Artifacts` files were verified for this library in the snapshot (`hasBenchmarks: false`).
15. Release History & NuGet vs Repo Status#
Version lag detected: NuGet.org latest published version is v1.0.0, while local repository HEAD is at v2.0.0.
| Version | Source | Published Date | Summary |
|---|---|---|---|
| v1.0.0 ↗ | github | 2026-09-24 | Ecosystem Packages in this release | Package | Version | |---------|---------| | `EricksonLopez.Printing` | `1.0.0` | | `EricksonLopez.Printing.EscPos` | `1.0.0` | | `EricksonLopez.Printing.EscPos.Imaging` | `1.0.0` | | `EricksonLopez.Printing.EscPos.Status` | `1.0.0` | | `EricksonLopez.Printing.Serial` | `1.0.0` | | `EricksonLopez.Printing.SignalR` | `1.0.0` | | `EricksonLopez.Printing.Zpl` | ... |
| v1.0.0 ↗ | nuget | 2026-09-24 | Published EricksonLopez.Printing 1.0.0 to NuGet.org. |
16. Complementary & Related Libraries#
Libraries in the same tier, architectural layer, or directly paired via dependency edges.
17. Documentation, API Reference & Portal Links#
Conceptual Documentation (Starlight) →
Extracted XML API Reference →
8 namespaces · 46 types · 232 members
Ecosystem Dependency Map →
Learning Center & Handbook →
Per-library conceptual Starlight pages expand in M4; API Reference pages expand in M3.2.
18. Source Repository, License & Contributing#
Released under the MIT License. All assemblies follow EricksonLopez.* build invariants: explicit imports, strong-name signing (`EricksonLopez.snk`), and ASCII author metadata (`Erickson Lopez`).
19. Troubleshooting, Pitfalls & Migration Guidance#
- EricksonLopez.Printing.SignalR sets IsAotCompatible=false; core ESC/POS, ZPL, and Serial packages are Full AOT.
- Version lag detected: NuGet.org latest published version is v1.0.0, while local repository HEAD is at v2.0.0.
20. Quality & Verification Evidence#
- Strong-Name Signing (`EricksonLopez.snk`)
- EricksonLopez.snk
- `ImplicitUsings=disable`
- disable
- XML Documentation Extraction
- Verified (8 namespaces, 46 types, 232 members)
- MSBuild AOT / Trim Attributes
- 7 Full / 0 Partial / 1 Incompatible / 0 N/A
- BenchmarkDotNet Artifacts
- 0 total (0 measured, 0 na_error)
Explicit Verification Boundaries & Limitations
- All verified measurements below come strictly from `BenchmarkDotNet.Artifacts` running on .NET RyuJIT (0 NativeAOT benchmark runs exist in this snapshot).