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: 30 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 (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-27T17:31:23.000Z (about 10 years ago)
- Last Synced: 2026-02-07T00:51:40.000Z (5 months ago)
- Language: Ruby
- Size: 29 MB
- Stars: 1
- Watchers: 1
- 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`