public
Description: Fast, Nimble PDF Writer for Ruby
Homepage: http://prawn.majesticseacreature.com
Clone URL: git://github.com/sandal/prawn.git
Continuing to improve example [#28]
sandal (author)
Mon Jun 23 23:31:53 -0700 2008
commit  ed1ed0f6ce72df0c56e22d6d7f20d5b4312841e3
tree    1058ffa8b4408e084c1607ecbae681915249a737
parent  703d5d7c10245d8dbea1be049da06248a11b9895
...
2
3
4
5
 
6
7
8
...
26
27
28
29
30
 
 
31
32
33
...
2
3
4
 
5
6
7
8
...
26
27
28
 
 
29
30
31
32
33
0
@@ -2,7 +2,7 @@ $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
0
 require "prawn"
0
 
0
 Prawn::Document.generate("table.pdf") do 
0
-  font "#{Prawn::BASEDIR}/data/fonts/comicsans.ttf"
0
+  font "#{Prawn::BASEDIR}/data/fonts/DejaVuSans.ttf"
0
   table [["foo",    "baaar",             "1" ],
0
          ["This is","a sample",          "2" ],
0
          ["Table",  "dont\ncha\nknow?",  "3" ],
0
@@ -26,8 +26,8 @@ Prawn::Document.generate("table.pdf") do
0
          [ "It",    "Rules",             "4" ],     
0
          [ "It",    "Rules",             "4" ]],     
0
 
0
-    :font_size  => 14, 
0
-    :padding    => 7,
0
+    :font_size  => 18, 
0
+    :padding    => 3,
0
     :border     => 2,
0
     :position   => :center,
0
     :headers    => ["Column A","Column B","#"]

Comments