Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ideadapt/label-templates
Use ruby, HTML and CSS to generate printer ready PDFs with different layouts
https://github.com/ideadapt/label-templates
Last synced: 3 days ago
JSON representation
Use ruby, HTML and CSS to generate printer ready PDFs with different layouts
- Host: GitHub
- URL: https://github.com/ideadapt/label-templates
- Owner: ideadapt
- Created: 2014-02-15T15:47:25.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-27T17:31:23.000Z (over 8 years ago)
- Last Synced: 2023-03-22T10:55:13.693Z (over 1 year ago)
- Language: Ruby
- Size: 29 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Installation
============
Install qt 4.x
(https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit)
`brew install qt`Install wkhtmltopdf 0.9.9
`brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb`Usage
=====Generate PDF for all defined carts:
`ruby printlayout.html.rb`Generate PDF for carts starting at index start:
`ruby printlayout.html.rb -start=5`Generate PDF for the last three carts:
`ruby printlayout.html.rb -start=-3`Generate PDF for carts with matching teaser images:
`ruby printlayout.html.rb -teaser=tomate-`Do not auto open generated pdf
`ruby printlayout.html.rb -no-open`