Skip to content
Sinatra extension to add support for pdf rendering with Prawn templates.
Ruby
Find file
Latest commit 05fbd75 S. Brent Faulkner Merge pull request #4 from tensai-cirno/master
New helpers in 1.3
Failed to load latest commit information.
lib/sinatra
test use Rack::Test instead of Sinatra::Test
.gitignore first working version
CHANGES use Rack::Test instead of Sinatra::Test
LICENSE first working version
README.rdoc Added instalation information to readme for bundler
Rakefile first working version
TODO use Rack::Test instead of Sinatra::Test
VERSION.yml use Rack::Test instead of Sinatra::Test
sinatra-prawn.gemspec use Rack::Test instead of Sinatra::Test

README.rdoc

sinatra-prawn

sinatra-prawn is an extension for sinatra to enable rendering of pdf files using prawn templates.

Installation

sudo gem install sbfaulkner-sinatra-prawn -s http://gems.github.com

Installation from bundler

add these lines to your project Gemfile

source "http://gems.github.com"
gem  "sbfaulkner-sinatra-prawn"

and run

bundle install

Example

require 'rubygems'
require 'sinatra'
require 'sinatra/prawn'

set :prawn, { :page_layout => :landscape }

get '/' do
  content_type 'application/pdf'
  prawn :pdf
end

__END__

@@ pdf
pdf.text "Hello world!!!!!"

Legal

Author

  1. Brent Faulkner <brentf@unwwwired.net>

License

Copyright © 2009 unwwwired.net, released under the MIT license

Something went wrong with that request. Please try again.