https://github.com/seekingalpha/table2png
Generates PNGs based on HTML tables
https://github.com/seekingalpha/table2png
Last synced: about 1 year ago
JSON representation
Generates PNGs based on HTML tables
- Host: GitHub
- URL: https://github.com/seekingalpha/table2png
- Owner: seekingalpha
- License: mit
- Created: 2014-05-20T07:54:54.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-15T19:02:32.000Z (almost 12 years ago)
- Last Synced: 2024-04-19T11:07:50.164Z (about 2 years ago)
- Language: Ruby
- Size: 23.4 MB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://codeclimate.com/github/seekingalpha/table2png)
[](https://travis-ci.org/seekingalpha/table2png)
# Table2PNG
A simple PNG generator based on an HTML table.
## Installation
Add this line to your application's Gemfile:
gem 'table2png'
And then execute:
$ bundle
Or install it yourself as:
$ gem install table2png
## Usage
```ruby
# e.g. Table2PNG table_html
Table2PNG::Converter.new("HEY").process # default style public/table.css
or you can pass any style you want by
Table2PNG::Converter.new("HEY").process ['public/style.css']
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request