Skip to content

ryan-strasburg/Trimble-Zebra-Printing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trimble Zebra Printing

Trimble Zebra Printing was built to simplify and standardize ZPL printing in the Trimble Facilities. This includes features, such as DPI scaling, to improve printing automation. Upscaling DPI results in a loss of quality. Matching DPIs or downscaling is recommended.

class Zebra

Class To Communicate & Print With (Zebra) Label Printers.

def print_label(commands, label_width = None, label_length = None, queue = None):

Print Label Using ZPL Commands.

:param commands: ZPL command (string)

:param label_width: label width (in inches) (required for printer scaling) (optional)

:param label_length: label length (in inches) (required for printer scaling) (optional)

:param queue: printer queue (string) (optional)

def set_queue(queue):

Set Printer Queue.

:param queue: printer queue (string)

def get_queues():

Get Printer Queues.

:return: printer queues (list)

def get_printer_dpi(queue = None):

Get Printer DPI.

:param queue: printer queue (string) (optional)

:return: printer DPI (int)

def get_label_dpi(commands, label_width, label_length):

Get Label DPI.

:param commands: ZPL command (string)

:param label_width: label width (in inches)

:param label_length: label length (in inches)

:return: label DPI (int)

def setup(label_width, label_height, direct_thermal = None):

Setup Printer Parameters Manually.

:param label_width: label width (in dots)

:param label_height: tuple (label height, label gap) (in dots)

:param direct_thermal: True if using direct thermal labels (bool) (optional)

def autosense():

Autosense Label Parameters.

def reset():

Reset Printer.

def reset_default():

Reset Printer to Factory Default.

About

Trimble Zebra Printing for ZPL Printing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages