Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.md
README.rdoc
Rakefile
config.ru

README.md

Pdfcrowd & Ruby on Rails Demo

Sample for dynamic and static HTML to PDF conversions.

Prerequisites

ruby
ruby-dev
ruby-bundler

Replace 'your_username' with your Pdfcrowd username and 'your_apikey' with your Pdfcrowd API key in app/controllers/demo_controller.rb file. Sign up for a free trial if you don't have the credentials.

Installing

gem install rails
bundle install

Web server start

rails server -p 8080

Test

Open a sample web page http://localhost:8080/

Invoke a conversion to PDF by pressing buttons at the bottom of the page.

Documentation