Sha256: 612c72acd5d222199c427845a28e501dfadcb5fcca09189bf9c8bee8f1992794

Contents?: true

Size: 328 Bytes

Versions: 12

Compression:

Stored size: 328 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8

$:.unshift(File.dirname(__FILE__) + "/../lib")

require 'pdf/wrapper'

pdf = PDF::Wrapper.new("wrapper.pdf", :paper => :A4)
pdf.font("Sans Serif")
pdf.text File.read(File.dirname(__FILE__) + "/../specs/data/utf8.txt"), :font => "Monospace", :font_size => 8, :alignment => :center
pdf.finish

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pdf-wrapper-0.4.5 examples/utf8.rb
pdf-wrapper-0.4.4 examples/utf8.rb
pdf-wrapper-0.4.1 examples/utf8.rb
pdf-wrapper-0.4.0 examples/utf8.rb
pdf-wrapper-0.3.5 examples/utf8.rb
pdf-wrapper-0.3.4 examples/utf8.rb
pdf-wrapper-0.3.3 examples/utf8.rb
pdf-wrapper-0.3.2 examples/utf8.rb
pdf-wrapper-0.3.1 examples/utf8.rb
pdf-wrapper-0.3.0 examples/utf8.rb
pdf-wrapper-0.2.0 examples/utf8.rb
pdf-wrapper-0.2.1 examples/utf8.rb