PDFtoZPL
A .NET library to convert PDF files (and bitmaps) into Zebra Programming Language commands.
This .NET library is built on top of
- PDFium (native PDF renderer)
- PdfiumViewer (wrapper for PDFium)
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 libgdiplusmacOS (via Homebrew)
brew install mono-libgdiplusHow does it work?
- Use PDFium to render a bitmap (for PDF files)
- Make the bitmap monochrome
- Convert the bitmap into a ^GF (Graphic Field) command
- Compress the command hexdecimal data to shrink the ZPL code in size
- Return the generated ZPL code