An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Code Climate](https://codeclimate.com/github/seekingalpha/table2png.png)](https://codeclimate.com/github/seekingalpha/table2png)

[![Build Status](https://travis-ci.org/seekingalpha/table2png.svg)](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