Sha256: 69eb00206c52e9af478031a63c3bb203bccd03bd511412f0e0683df984ffb8ae

Contents?: true

Size: 353 Bytes

Versions: 76

Compression:

Stored size: 353 Bytes

Contents

# # Hello World
#
# This simple example mimics the classic "hello world" examples from
# programming languages.
#
# Usage:
# : `ruby hello_world.rb`
#

require 'hexapdf'

doc = HexaPDF::Document.new
canvas = doc.pages.add.canvas
canvas.font('Helvetica', size: 100)
canvas.text("Hello World!", at: [20, 400])
doc.write("hello_world.pdf", optimize: true)

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
hexapdf-1.1.1 examples/001-hello_world.rb
hexapdf-1.1.0 examples/001-hello_world.rb
hexapdf-1.0.3 examples/001-hello_world.rb
hexapdf-1.0.2 examples/001-hello_world.rb
hexapdf-1.0.1 examples/001-hello_world.rb
hexapdf-1.0.0 examples/001-hello_world.rb
hexapdf-0.47.0 examples/001-hello_world.rb
hexapdf-0.46.0 examples/001-hello_world.rb
hexapdf-0.45.0 examples/001-hello_world.rb
hexapdf-0.44.0 examples/001-hello_world.rb
hexapdf-0.41.0 examples/001-hello_world.rb
hexapdf-0.40.0 examples/001-hello_world.rb
hexapdf-0.39.1 examples/001-hello_world.rb
hexapdf-0.39.0 examples/001-hello_world.rb
hexapdf-0.38.0 examples/001-hello_world.rb
hexapdf-0.37.2 examples/001-hello_world.rb
hexapdf-0.37.1 examples/001-hello_world.rb
hexapdf-0.37.0 examples/001-hello_world.rb
hexapdf-0.36.0 examples/001-hello_world.rb
hexapdf-0.35.1 examples/001-hello_world.rb