PDF::Writer

PDF Writer is a library for creating PDFs.

Installation

gem install pdf-writer

Configuration

In config/environment.rb

require 'pdf/writer'
require 'pdf/simpletable' # If you want to be able to draw tables
Mime::Type.register 'application/pdf', :pdf

Usage

pdf = PDF::Writer.new(:paper => "A4")
pdf.text "This is some text", :font_size => 8, :justification => :center
pdf.render

Tables

 
pdfwriter.txt · Last modified: 2009/05/12 17:48 by andrew
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki