0
@@ -95,7 +95,7 @@ module Prawn
0
# Creates and advances to a new page in the document.
0
# Runs the <tt>:on_page_start</tt> lambda if one was provided at
0
- # document creation time (See Document.
initialize).
0
+ # document creation time (See Document.
new).
0
finish_page_content if @page_content
0
@@ -129,7 +129,7 @@ module Prawn
0
- # Renders the PDF document
, returning a string by default. 0
+ # Renders the PDF document
to string0
@@ -159,37 +159,79 @@ module Prawn
0
+ # Moves up the document by n points
0
+ # Moves down the document by n point
0
+ # Moves down the document and then executes a block.
0
+ # pdf.text "some text"
0
+ # pdf.text "This is 100 points below the previous line of text"
0
+ # pdf.text "This text appears right below the previous line of text"
0
+ # Executes a block then moves down the document
0
+ # pdf.text "some text"
0
+ # pdf.pad_bottom(100) do
0
+ # pdf.text "This text appears right below the previous line of text"
0
+ # pdf.text "This is 100 points below the previous line of text"
0
+ # Moves down the document by y, executes a block, then moves down the
0
+ # document by y again.
0
+ # pdf.text "some text"
0
+ # pdf.text "This is 100 points below the previous line of text"
0
+ # pdf.text "This is 100 points below the previous line of text"
0
+ # Builds and renders a Document::Table object from raw data.
0
+ # For details on the options that can be passed, see
0
+ # data = [["Gregory","Brown"],["James","Healy"],["Jia","Wu"]]
0
+ # Prawn::Document.generate("table.pdf") do
0
+ # table data, :headers => ["First Name", "Last Name"]
0
def table(data,options={})
0
Prawn::Document::Table.new(data,self,options).draw
0
- # Stores the current state of the named attributes, executes the block, and
0
- # then restores the original values after the block has executed.
0
+ def mask(*fields) # :nodoc:
0
+ # Stores the current state of the named attributes, executes the block, and
0
+ # then restores the original values after the block has executed.
0
+ # -- I will remove the nodoc if/when this feature is a little less hacky
0
fields.each { |f| stored[f] = send(f) }
Comments
No one has commented yet.