Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sinatra extension to add support for pdf rendering with Prawn templates.

branch: master

This branch is 0 commits ahead and 0 commits behind master

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

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.