Skip to content

BaobabHealthTrust/zebra_printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZebraPrinter

Generate labels to be printed on Zebra Label Printers

Install

script/plugin install git://github.com/BaobabHealthTrust/zebra_printer.git

Usage

Generate “Hello Labels!” label

require 'zebra_printer'
label = ZebraPrinter::StandardLabel.new
label.draw_multi_text("Hello labels!")
label.print

Generate health passport label

require 'zebra_printer'
label = ZebraPrinter::StandardLabel.new
label.font_size = 2
label.font_horizontal_multiplier = 2
label.font_vertical_multiplier = 2
label.left_margin = 50
label.draw_barcode(50,180,0,1,5,15,120,false,"ABC-DEF")
label.draw_multi_text("James Phiri")
label.draw_multi_text("ABC-DEF ??/???/2000 (M)")
label.draw_multi_text("Unknown location")
label.print

About

Generate labels to be printed on Zebra Label Printers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages