PDFtoZPL 3.3.0

.NET 6.0 .NET Framework 4.6.2
dotnet add package PDFtoZPL --version 3.3.0
NuGet\Install-Package PDFtoZPL -Version 3.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="PDFtoZPL" Version="3.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PDFtoZPL --version 3.3.0
#r "nuget: PDFtoZPL, 3.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.
// Install PDFtoZPL as a Cake Addin
#addin nuget:?package=PDFtoZPL&version=3.3.0

// Install PDFtoZPL as a Cake Tool
#tool nuget:?package=PDFtoZPL&version=3.3.0

PDFtoZPL Logo PDFtoZPL

Azure DevOps builds (branch) Azure DevOps tests (branch) SonarCloud Quality Gate NuGet version NuGet downloads GitHub license

A .NET library to convert PDF files (and bitmaps) into Zebra Programming Language commands.

This .NET library is built on top of

You can use Labelary Online ZPL Viewer to render the resulting ZPL code.

Getting started

Just call one of the following static methods:

  • PDFtoZPL.Conversion.ConvertPdfPage()
  • PDFtoZPL.Conversion.ConvertPdf()
  • PDFtoZPL.Conversion.ConvertPdfAsync()
  • PDFtoZPL.Conversion.ConvertBitmap()

How does it work?

  1. Use PDFium to render a bitmap (for PDF files)
  2. Make the bitmap monochrome
  3. Convert the bitmap into a ^GF (Graphic Field) command
  4. Compress the command hexdecimal data to shrink the ZPL code in size
  5. Return the generated ZPL code
Product Versions
.NET net6.0 net6.0-android net6.0-android31.0 net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Framework net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid10.0
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PDFtoZPL:

Package Downloads
SktPublicLib

Softketeers public library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.3.0 1,630 2/2/2023
3.2.3 192 1/20/2023
3.2.2 6,871 7/22/2022
3.2.1 4,759 6/22/2022
3.2.0 413 6/17/2022
3.1.0 558 5/27/2022
3.0.0 318 5/25/2022
3.0.0-preview3 6,719 2/8/2022
3.0.0-preview 2,783 1/2/2022
2.2.1 11,128 11/10/2021
2.2.0 8,297 10/10/2021
2.1.3 1,130 8/26/2021
2.1.2 329 8/19/2021
2.1.1 293 8/13/2021
2.1.1-preview 301 7/30/2021
2.1.0 12,989 6/17/2021
2.0.1 902 5/29/2021
2.0.0 2,838 3/22/2021
1.3.1 3,864 3/21/2021
1.2.0 356 2/28/2021
1.2.0-preview 202 2/28/2021
1.1.0 718 11/24/2020
1.0.0 700 2/7/2020

- Added support for .NET Framework 4.8.1 and win-arm64.
- Added optional parameter withAspectRatio for resizing.