Skip to content

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

License

Notifications You must be signed in to change notification settings

sungaila/PDFtoZPL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ae5110d · Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Dec 7, 2024
Feb 6, 2024
Nov 24, 2020
Nov 24, 2020
Sep 3, 2023
Nov 10, 2021
Aug 26, 2023
Dec 7, 2024
Nov 19, 2023
Dec 7, 2024
Jan 29, 2024

Repository files navigation

PDFtoZPL Logo PDFtoZPL

GitHub Workflow Build Status GitHub Workflow Test Runs Succeeded SonarCloud Quality Gate NuGet version NuGet downloads Website GitHub license

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

This .NET library is built on top of

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