encoding: utf-8
repeater.rb : Implements repeated page elements. Heavy inspired by repeating_element() in PDF::Wrapper
http://pdf-wrapper.rubyforge.org/
Copyright November 2009, Gregory Brown. All Rights Reserved.
This is free software. Please see the LICENSE and COPYING files for details.
BASEDIR | = | File.expand_path(File.join(dir, '..', '..')) | The base source directory for Prawn as installed on the system | |
VERSION | = | "0.8.4" |
debug | [RW] |
Whe set to true, Prawn will verify hash options to
ensure only valid keys are used. Off by default.
Example: >> Prawn::Document.new(:tomato => "Juicy") Prawn::Errors::UnknownOption: Detected unknown option(s): [:tomato] Accepted options are: [:page_size, :page_layout, :left_margin, ...] |
Serializes Ruby objects to their PDF equivalents. Most primitive objects will work as expected, but please note that Name objects are represented by Ruby Symbol objects and Dictionary objects are represented by Ruby hashes (keyed by symbols)
Examples: PdfObject(true) #=> "true" PdfObject(false) #=> "false" PdfObject(1.2124) #=> "1.2124" PdfObject("foo bar") #=> "(foo bar)" PdfObject(:Symbol) #=> "/Symbol" PdfObject(["foo",:bar, [1,2]]) #=> "[foo /bar [1 2]]"