API2PDF
Pretty-prints JSON-based API to PDF.
Usage
API2PDF.export(
:url => "http://ohanapi.herokuapp.com/api/organizations/51a9fd0328217f89770001b2",
:file_name => "HSC",
:heading => "Human Services Providers",
:columns => 2,
:page_layout => :landscape,
:page_size => "B5",
)
Installation
Add this line to your application's Gemfile:
gem 'api2pdf'
And then execute:
$ bundle
Or install it yourself as:
$ gem install api2pdf
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
