Sha256: 2efc5458f2f5037617c8575b1230a82e4cd1c5096231142344f03cd1f46492e4

Contents?: true

Size: 743 Bytes

Versions: 2

Compression:

Stored size: 743 Bytes

Contents

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

$:.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 => :black, :radius => 10})
pdf.render_to_file("wrapper-cell.pdf")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pdf-wrapper-0.1.0 examples/cell.rb
pdf-wrapper-0.1.3 examples/cell.rb