0.01
No commit activity in last 3 years
No release in over 3 years
A HTML5 client-side solution for generating PDFs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 3.1.0
 Project Readme

Gem Version

jsPDF is a library for creating PDF files in client-side JavaScript. This Gem packages jsPDF for Ruby on Rails' asset pipeline

License: MIT License (just like jsPDF)

Rails: 3.1 and up

Installation

Add this line to your application's Gemfile:

gem 'jspdf-rails'

And then execute:

$ bundle

Usage

Include the javascript part:

For Coffeescript

#= require 'jspdf'

For JavaScript

//= require 'jspdf'

Be sure to include jQuery before requiring jsPDF.