Mercurial > hg > soundsoftware-site
view vendor/plugins/rfpdf/init.rb @ 503:5d608412b003 feature_212
Pull out font name specifications from stylesheets and serve differently to different platforms (falling back to our usual web fonts). Fixes #212
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 14 Jul 2011 10:14:03 +0100 |
parents | cbce1fd3b1b7 |
children |
line wrap: on
line source
begin require('htmlentities') rescue LoadError # This gem is not required - just nice to have. end require('cgi') require 'rfpdf' # Mime::Type.register "application/pdf", :pdf ActionView::Template::register_template_handler 'rfpdf', RFPDF::TemplateHandlers::Base