Project

lablr

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates(Avery, etc.).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.4
>= 0
>= 0

Runtime

 Project Readme

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")