Pretty-prints JSON-based API to PDF.
API2PDF.export( :url => "http://ohanapi.herokuapp.com/api/organizations/51a9fd0328217f89770001b2", :file_name => "HSC", :heading => "Human Services Providersss" :columns => 2, :page_layout => :landscape, :page_size => "B5", )
Add this line to your application's Gemfile:
gem 'api2pdf', :git => "https://github.com/codeforamerica/ohana-pdf.git", :branch => 'master'
And then execute:
Or install it yourself as:
$ gem install api2pdf
- 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
Copyright (c) 2013 Code for America. See LICENSE for details.