lib/rtf/style.rb
def prefix(fonts=nil, colours=nil)
         text = StringIO.new

         if orientation == LANDSCAPE
            text << "\\paperw#{@paper.height}"  unless @paper.nil?
            text << "\\paperh#{@paper.width}"   unless @paper.nil?
         else
            text << "\\paperw#{@paper.width}"   unless @paper.nil?
            text << "\\paperh#{@paper.height}"  unless @paper.nil?
         end
         text << "\\margl#{@left_margin}"       unless @left_margin.nil?
         text << "\\margr#{@right_margin}"      unless @right_margin.nil?
         text << "\\margt#{@top_margin}"        unless @top_margin.nil?
         text << "\\margb#{@bottom_margin}"     unless @bottom_margin.nil?
         text << "\\gutter#{@gutter}"           unless @gutter.nil?
         text << '\sectd\lndscpsxn' if @orientation == LANDSCAPE

         text.string
      end
def prefix(fonts=nil, colours=nil)
         text = StringIO.new

         if orientation == LANDSCAPE
            text << "\\paperw#{@paper.height}"  unless @paper.nil?
            text << "\\paperh#{@paper.width}"   unless @paper.nil?
         else
            text << "\\paperw#{@paper.width}"   unless @paper.nil?
            text << "\\paperh#{@paper.height}"  unless @paper.nil?
         end
         text << "\\margl#{@left_margin}"       unless @left_margin.nil?
         text << "\\margr#{@right_margin}"      unless @right_margin.nil?
         text << "\\margt#{@top_margin}"        unless @top_margin.nil?
         text << "\\margb#{@bottom_margin}"     unless @bottom_margin.nil?
         text << "\\gutter#{@gutter}"           unless @gutter.nil?
         text << '\sectd\lndscpsxn' if @orientation == LANDSCAPE

         text.string
      end
This method generates a string containing the prefix associated with a
 style object.

 ==== Parameters
 document::  A reference to the document using the style.