Sha256: eae92f2e18d7ea1bd58d8bf38e2f9fbf701550853ab3dd7b816969d2b3487bc0

Contents?: true

Size: 732 Bytes

Versions: 2

Compression:

Stored size: 732 Bytes

Contents

#!/usr/bin/env ruby

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

require 'pdf/wrapper'

pdf = PDF::Wrapper.new(:paper => :A4)
pdf.cell("Given an index within a layout, determines the positions that of the strong and weak cursors if the insertion point is at that index. The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the layout are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the layout are inserted.", 100, 100, 100, 200, {:border => "", :color => :white, :bgcolor => :black})
pdf.render_to_file("wrapper-cell.pdf")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pdf-wrapper-0.0.1 examples/cell.rb
pdf-wrapper-0.0.2 examples/cell.rb