Sha256: 6dde17d981f7801fc609e70fa8e8d44cc6461d04b874cffece7a03b5e5e4beb4

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

#--
# PDF::Writer for Ruby.
#   http://rubyforge.org/projects/ruby-pdf/
#   Copyright 2003 - 2005 Austin Ziegler.
#
#   Licensed under a MIT-style licence. See LICENCE in the main distribution
#   for full licensing information.
#
# $Id: hello.rb 92 2005-06-13 19:32:37Z austin $
#++
begin
  require 'pdf/writer'
rescue LoadError => le
  if le.message =~ %r{pdf/writer$}
    $LOAD_PATH.unshift("../lib")
    require 'pdf/writer'
  else
    raise
  end
end

pdf = PDF::Writer.new
pdf.select_font "Times-Roman"
pdf.text "Hello, Ruby.", :font_size => 72, :justification => :center

pdf.save_as("hello.pdf")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pdf-writer-1.1.6 demo/hello.rb
pdf-writer-1.1.5 demo/hello.rb
pdf-writer-1.1.7 demo/hello.rb
pdf-writer-1.1.8 demo/hello.rb