require 'rubygems' require 'pdf/techbook' require_gem 'pdf-writer' text = < 2 3 4 .code pdf = PDF::Writer.new pdf.select_font "Times-Roman" pdf.text "Hello Ruby", :font =>14, :justification => :left pdf.save_as("e:/hello_ruby.pdf") .endcode .blist disc Line item 1 with disc .endblist .blist disc Line item 2 with disc .endblist .blist disc Line item 3 with disc .endblist .blist bullet Line item 1 with bullet .endblist .blist bullet Line item 2 with bullet .endblist .blist bullet Line item 3 with bullet .endblist .pre Pre line 1 Pre line 2 .endpre TEXT pdf = PDF::TechBook.new pdf.select_font "Times-Roman" pdf.text "Hello Ruby\n", :font =>18, :justification => :left pdf.techbook_parse text pdf.save_as("c:/temp/hello_ruby.pdf") `C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe c:/temp/hello_ruby.pdf`