Sha256: a841487bc7e296ebc32974e23f893038b9c9fdf3f89ae36dd17991a34db37aff

Contents?: true

Size: 816 Bytes

Versions: 2

Compression:

Stored size: 816 Bytes

Contents

h1. Lablr

Lablr is a  Ruby Gem for generating printable labels in a variety of formats(pdf, html, etc.) and templates. 

h2. Supported Label Templates

The following templates are supported by Lablr:

* Avery 5163/5963

h2. Requirements

Lablr uses HTMLDOC and the htmldoc gem to generate pdf files. You need to install HTMLDOC like so:

<pre>
sudo apt-get install
</pre> 

Then install the htmldoc gem:
<pre>sudo gem install htmldoc</pre> 

h2. Installation
<pre>gem install lablr</pre>

h2. Usage

<pre>
# 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")
</pre>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lablr-0.2.0 README.textile
lablr-0.1.2 README.textile