labels is a ruby web based on sinatra app to generate printable label pdfs.
these kind of labels are used by libraries to tag books e.a. with author shortcut or genre.
install the sinatra, prawn and json gems:
git clone [email protected]:davidtrautmann/labels.git
bundle install
bundle update
default port: 5656
paper style can be set in paper.json
{
"paper_name": "testpaper",
"page_size": "A4",
"margin_top": "21.5",
"margin_right": "9.75",
"margin_bottom": "21.5",
"margin_left": "9.75",
"width": "45.72",
"height": "21.167",
"size_standard": "14",
"size_big": "22",
"rows": "12",
"columns": "4"
}
ruby labels.rb