Lablr
Lablr is a Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates.
Supported Label Templates
The following templates are supported by Lablr:
- Avery 5163/5963
Requirements
Lablr uses HTMLDOC and the htmldoc gem to generate pdf files. You need to install HTMLDOC like so:
sudo apt-get install
Then install the htmldoc gem:
sudo gem install htmldoc
Installation
gem install lablr
Usage
# Generate PDF Label Sheet Lablr.generate_labels(:template => :avery_5163, :format => :pdf, :content => "Test Label!") # Generate PDF and write to file Lablr.generate_labels(:template => :avery_5163, :format => :pdf, :content => "Test Label!", :to_file => "x.pdf")