Skip to content

web based ruby sinatra app to generate printable book label pdfs

Notifications You must be signed in to change notification settings

davidtrautmann/labels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

web based ruby sinatra app to generate printable book label pdfs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published