Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 912 Bytes

README.md

File metadata and controls

50 lines (38 loc) · 912 Bytes

labels

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

install the sinatra, prawn and json gems:

git clone [email protected]:davidtrautmann/labels.git
bundle install
bundle update

usage

default port: 5656

paper styles

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

run

ruby labels.rb

utilizes

sinatra

sinatra-prawn

json