api2pdf

Pretty-prints JSON-based API to PDF.


License
MIT
Install
gem install api2pdf -v 0.0.2

Documentation

API2PDF

Pretty-prints JSON-based API to PDF.

DEMO

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

  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