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)
- SkiaSharp (cross-platform 2D graphics API)
You can use Labelary Online ZPL Viewer to render the resulting ZPL code.
Just call one of the following static methods:
PDFtoZPL.Conversion.ConvertPdfPage()
PDFtoZPL.Conversion.ConvertPdf()
PDFtoZPL.Conversion.ConvertPdfAsync()
PDFtoZPL.Conversion.ConvertBitmap()
- 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