Skip to content
master
Switch branches/tags
Code

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.

Prerequisite libgdiplus

On platforms other than Windows you will have to have libgdiplus installed.

Debian-based Linux distributions

sudo apt-get install libgdiplus

macOS (via Homebrew)

brew install mono-libgdiplus

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