<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,14 +37,17 @@ task :examples do
   t = Time.now
   puts &quot;Running Examples&quot;
   examples.each { |file| `ruby -Ilib #{file}` }  
-  puts &quot;Ran in #{Time.now - t} s&quot;
-  `mv *.pdf output`
+  puts &quot;Ran in #{Time.now - t} s&quot;        
+  `mv *.pdf output`                     
+=begin
+  # Has some issues     
   puts &quot;Checking for differences...&quot;
   output = Dir[&quot;output/*.pdf&quot;]
-  ref    = Dir[&quot;reference_pdfs/*.pdf&quot;]
+  ref    = Dir[&quot;reference_pdfs/*.pdf&quot;]   
   output.zip(ref).each do |o,r|
     system &quot;diff -q #{o} #{r}&quot;
-  end
+  end 
+=end
 end
 
 spec = Gem::Specification.new do |spec|</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -26,7 +26,7 @@ module Prawn
              
     # Creates and renders a PDF document. 
     #
-    # The explicit receiver argument is necessary only when you need to make 
+    # The block argument is necessary only when you need to make 
     # use of a closure.     
     #      
     #  # Using implicit block form and rendering to a file
@@ -61,15 +61,15 @@ module Prawn
     # &lt;tt&gt;:skip_page_creation&lt;/tt&gt;:: Creates a document without starting the first page [false]
     # 
     #                             
-    #  # New document, US Letter paper, portrait orientation
-    #  pdf = Prawn::Document.new                            
+    #   # New document, US Letter paper, portrait orientation
+    #   pdf = Prawn::Document.new                            
     #
-    #  # New document, A4 paper, landscaped
-    #  pdf = Prawn::Document.new(:page_size =&gt; &quot;A4&quot;, :page_layout =&gt; :landscape)    
+    #   # New document, A4 paper, landscaped
+    #   pdf = Prawn::Document.new(:page_size =&gt; &quot;A4&quot;, :page_layout =&gt; :landscape)    
     # 
-    #  # New document, draws a line at the start of each new page
-    #  pdf = Prawn::Document.new(:on_page_start =&gt; 
-    #    lambda { |doc| doc.line [0,100], [300,100] } )
+    #   # New document, draws a line at the start of each new page
+    #   pdf = Prawn::Document.new(:on_page_start =&gt; 
+    #     lambda { |doc| doc.line [0,100], [300,100] } )
     #
     def initialize(options={})
        @objects = []
@@ -92,25 +92,16 @@ module Prawn
        
        start_new_page unless options[:skip_page_creation]
      end     
-     
-     def generate_margin_box     
-       old_margin_box = @margin_box
-       @margin_box = BoundingBox.new(
-         self,
-         [ @margins[:left], page_dimensions[-1] - @margins[:top] ] ,
-         :width =&gt; page_dimensions[-2] - (@margins[:left] + @margins[:right]),
-         :height =&gt; page_dimensions[-1] - (@margins[:top] + @margins[:bottom])
-       )                                 
-             
-       # update bounding box if not flowing from the previous page
-       # TODO: This may have a bug where the old margin is restored
-       # when the bounding box exits.
-       @bounding_box = @margin_box if old_margin_box == @bounding_box              
-     end
             
      # Creates and advances to a new page in the document.
-     # Runs the &lt;tt&gt;:on_page_start&lt;/tt&gt; lambda if one was provided at
-     # document creation time (See Document.new).  
+     # Runs the &lt;tt&gt;on_page_start&lt;/tt&gt; lambda if one was provided at
+     # document creation time (See Document.new).    
+     #
+     # Page size, margins, and layout can also be set when generating a
+     # new page. These values will become the new defaults for page creation
+     #
+     #   pdf.start_new_page(:size =&gt; &quot;LEGAL&quot;, :layout =&gt; :landscape)    
+     #   pdf.start_new_page(:left_margin =&gt; 50, :right_margin =&gt; 50)
      #                                
      def start_new_page(options = {})      
        @page_size   = options[:size] if options[:size]
@@ -196,8 +187,7 @@ module Prawn
     def move_down(n)
       self.y -= n
     end
-
-   
+ 
     # Moves down the document and then executes a block.
     #
     #   pdf.text &quot;some text&quot;
@@ -250,7 +240,22 @@ module Prawn
       fields.each { |f| send(&quot;#{f}=&quot;, stored[f]) }
     end
    
-    private
+    private 
+    
+    def generate_margin_box     
+      old_margin_box = @margin_box
+      @margin_box = BoundingBox.new(
+        self,
+        [ @margins[:left], page_dimensions[-1] - @margins[:top] ] ,
+        :width =&gt; page_dimensions[-2] - (@margins[:left] + @margins[:right]),
+        :height =&gt; page_dimensions[-1] - (@margins[:top] + @margins[:bottom])
+      )                                 
+            
+      # update bounding box if not flowing from the previous page
+      # TODO: This may have a bug where the old margin is restored
+      # when the bounding box exits.
+      @bounding_box = @margin_box if old_margin_box == @bounding_box              
+    end
   
     def ref(data)
       @objects.push(Prawn::Reference.new(@objects.size + 1, data)).last</diff>
      <filename>lib/prawn/document.rb</filename>
    </modified>
    <modified>
      <diff>@@ -77,7 +77,8 @@ module Prawn
       # &lt;tt&gt;:border_style&lt;/tt&gt;:: If set to :grid, fills in all borders.  Otherwise, borders are drawn on columns only, not rows
       # &lt;tt&gt;:position&lt;/tt&gt;:: One of &lt;tt&gt;:left&lt;/tt&gt;, &lt;tt&gt;:center&lt;/tt&gt; or &lt;tt&gt;n&lt;/tt&gt;, where &lt;tt&gt;n&lt;/tt&gt; is an x-offset from the left edge of the current bounding box
       # &lt;tt&gt;:widths:&lt;/tt&gt; A hash of indices and widths in PDF points.  E.g. &lt;tt&gt;{ 0 =&gt; 50, 1 =&gt; 100 }&lt;/tt&gt;
-      # &lt;tt&gt;:row_colors&lt;/tt&gt;:: An array of row background colors which are used cyclicly.  
+      # &lt;tt&gt;:row_colors&lt;/tt&gt;:: An array of row background colors which are used cyclicly.   
+      # &lt;tt&gt;:align&lt;/tt&gt;:: Alignment of text in columns [:left]
       #
       # Row colors are specified as html encoded values, e.g.
       # [&quot;ffffff&quot;,&quot;aaaaaa&quot;,&quot;ccaaff&quot;].  You can also specify </diff>
      <filename>lib/prawn/document/table.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,13 +27,17 @@ module Prawn
       # is being used ). Text will flow onto the next page when it reaches
       # the bottom of the margin_box. Text wrap in Prawn does not re-flow
       # linebreaks, so if you want fully automated text wrapping, be sure to
-      # remove newlines before attempting to draw your string.
+      # remove newlines before attempting to draw your string.  
       #
       #   pdf.text &quot;Hello World&quot;, :at =&gt; [100,100]
       #   pdf.text &quot;Goodbye World&quot;, :at =&gt; [50,50], :size =&gt; 16
       #   pdf.text &quot;Will be wrapped when it hits the edge of your bounding box&quot;
       #
-      # All strings passed to this function should be encoded as UTF-8.
+      # If your font contains kerning pairs data that Prawn can parse, the 
+      # text will be kerned by default.  You can disable this feature by passing
+      # &lt;tt&gt;:kerning =&gt; false&lt;/tt&gt;.
+      #
+      # Note that strings passed to this function should be encoded as UTF-8.
       # If you get unexpected characters appearing in your rendered 
       # document, check this.
       #
@@ -75,8 +79,12 @@ module Prawn
           }
         end
       end
-
-      def font_metrics #:nodoc:
+                       
+      # Access to low-level font metrics data. This is only necessary for those
+      # who require direct access to font attributes, and can be safely ignored
+      # otherwise.
+      #                 
+      def font_metrics 
         @font_metrics ||= Prawn::Font::Metrics[&quot;Helvetica&quot;]
       end
 
@@ -121,7 +129,10 @@ module Prawn
       #   end
       #
       #   text &quot;At size 16&quot;
-      #  end
+      #  end   
+      #
+      # When called without an argument, this method returns the current font
+      # size.
       #
       def font_size(size=nil)
         return current_font_size unless size</diff>
      <filename>lib/prawn/document/text.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,8 @@ module Prawn
       # &lt;tt&gt;:horizontal_padding&lt;/tt&gt;:: The horizontal padding in PDF points
       # &lt;tt&gt;:vertical_padding&lt;/tt&gt;:: The vertical padding in PDF points
       # &lt;tt&gt;:padding&lt;/tt&gt;:: Overrides both horizontal and vertical padding
-      # &lt;tt&gt;:border_style&lt;/tt&gt;:: One of &lt;tt&gt;:all&lt;/tt&gt;, &lt;tt&gt;:no_top&lt;/tt&gt;, &lt;tt&gt;:no_bottom&lt;/tt&gt;, &lt;tt&gt;:sides&lt;/tt&gt;
+      # &lt;tt&gt;:border_style&lt;/tt&gt;:: One of &lt;tt&gt;:all&lt;/tt&gt;, &lt;tt&gt;:no_top&lt;/tt&gt;, &lt;tt&gt;:no_bottom&lt;/tt&gt;, &lt;tt&gt;:sides&lt;/tt&gt;   
+      # &lt;tt&gt;:align&lt;/tt&gt;:: One of &lt;tt&gt;:left&lt;/tt&gt;, &lt;tt&gt;:right&lt;/tt&gt;, &lt;tt&gt;:center&lt;/tt&gt;
       #
       def initialize(options={})
         @point        = options[:point]
@@ -64,7 +65,9 @@ module Prawn
                     :document, :horizontal_padding, :vertical_padding,
                     :align
       attr_writer   :height, :width #:nodoc:   
-      
+           
+      # Returns the cell's text as a string.
+      #
       def to_s
         @text
       end</diff>
      <filename>lib/prawn/graphics/cell.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,6 +22,18 @@ module Prawn
     # &lt;tt&gt;:height&lt;/tt&gt;:: the height of the image [actual height of the image]
     # &lt;tt&gt;:width&lt;/tt&gt;:: the width of the image [actual width of the image]
     # &lt;tt&gt;:scale&lt;/tt&gt;:: scale the dimensions of the image proportionally
+    # 
+    #   Prawn::Document.generate(&quot;image2.pdf&quot;, :page_layout =&gt; :landscape) do     
+    #     pigs = &quot;#{Prawn::BASEDIR}/data/images/pigs.jpg&quot; 
+    #     image pigs, :at =&gt; [50,450], :width =&gt; 450                                      
+    #
+    #     dice = &quot;#{Prawn::BASEDIR}/data/images/dice.png&quot;
+    #     image dice, :at =&gt; [50, 450], :scale =&gt; 0.75 
+    #   end   
+    #
+    # If only one of :width / :height are provided, the image will be scaled
+    # proportionally.  When both are provided, the image will be stretched to 
+    # fit the dimensions without maintaining the aspect ratio.
     #
     def image(filename, options={})
       raise ArgumentError, &quot;#{filename} not found&quot; unless File.file?(filename)  </diff>
      <filename>lib/prawn/images.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ module Prawn
   module Images
     # A convenience class that wraps the logic for extracting the parts
     # of a PNG image that we need to embed them in a PDF
-    class JPG #nodoc
+    class JPG #:nodoc:
       attr_reader :width, :height, :bits, :channels
 
       JPEG_SOF_BLOCKS = %W(\xc0 \xc1 \xc2 \xc3 \xc5 \xc6 \xc7 \xc9 \xca \xcb \xcd \xce \xcf)</diff>
      <filename>lib/prawn/images/jpg.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ module Prawn
   module Images
     # A convenience class that wraps the logic for extracting the parts
     # of a PNG image that we need to embed them in a PDF
-    class PNG #nodoc
+    class PNG #:nodoc:
       attr_reader :palette, :img_data, :transparency
       attr_reader :width, :height, :bits
       attr_reader :color_type, :compression_method, :filter_method</diff>
      <filename>lib/prawn/images/png.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bbd6a6dcb9d165e43a72d6962476558b687ca246</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/9eba518c4c682ff5bcf5f8a384b3bda4ce0cd98f</url>
  <id>9eba518c4c682ff5bcf5f8a384b3bda4ce0cd98f</id>
  <committed-date>2008-08-03T04:28:45-07:00</committed-date>
  <authored-date>2008-08-03T04:28:45-07:00</authored-date>
  <message>Documentation updates</message>
  <tree>f3e3a2df730b9716871915410462d1162342adde</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
