StripyHorse 0.3.0

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

Stripy Horse C# SDK

Official .NET client for the Stripy Horse API - Zebra/ZPL developer tools: render ZPL to PNG, convert PDFs/images/HTML to print-ready ZPL, and drive hosted virtual Zebra printers from your tests.

Generated from the live OpenAPI spec, which is itself emitted from the server's handler code, so the SDK can never drift from the API.

Targets .NET 8.

Install

dotnet add package StripyHorse

Setup

using StripyHorse.Api;
using StripyHorse.Client;
using StripyHorse.Model;

var config = new Configuration { AccessToken = "sh_live_YOUR_KEY" };

Render ZPL to PNG

var render = new RenderApi(config);
var outp = render.RenderZpl(new RenderInputBody(
    zpl: "^XA^FO50,50^A0N,45,45^FDHello^FS^XZ",
    preset: RenderInputBody.PresetEnum._4x6));
File.WriteAllBytes("label.png", Convert.FromBase64String(outp.Labels[0].Png));

Convert a PDF (or PNG/GIF/JPEG) to ZPL

var convert = new ConvertApi(config);
using var pdf = File.OpenRead("shipping-label.pdf");
var result = convert.ConvertDocument(pdf, preset: "4x6");  // multipart params stay strings
foreach (var page in result.Pages)
    SendToPrinter(page.Zpl);

Design a label in HTML, get ZPL

var outp = convert.ConvertHtml(new HtmlInputBody(
    html: """<div style="position:absolute;left:40px;top:40px;font-size:50px">Hello</div>""",
    preset: HtmlInputBody.PresetEnum._4x6));
Console.WriteLine(outp.Zpl);

Test label printing in CI with a virtual printer

var sim = new SimulatorApi(config);

var printer = sim.CreatePrinter(new CreatePrinterInputBody(
    name: "ci-run-42", preset: CreatePrinterInputBody.PresetEnum._4x6));

// Point the system under test at the printer, exactly like hardware:
var addr = $"{printer.Tcp.Host}:{printer.Tcp.Port}";

// ... run your fulfillment code against addr ...

// Then assert on what it printed:
var jobs = sim.ListJobs(printer.Id);
Debug.Assert(jobs.Jobs.Count == 1);

// Reproduce a paper-out jam and watch jobs hold in the buffer:
sim.SetPrinterFaults(printer.Id, new Faults(paperOut: true));

Every method also has an ...Async variant taking a CancellationToken.

Errors

API errors throw StripyHorse.Client.ApiException; ErrorContent carries the JSON error envelope. HTTP 429 includes a Retry-After header.

Regenerating

Every file here is generated from the OpenAPI spec, which is emitted from the server's own handler code. Hand edits are overwritten by the next spec change, so report a problem with the SDK as a problem with the API: stripyhorse.io/contact.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.3.0 104 9/1/2026