Sha256: 7b913ddb8c70d3fc49c54d7d0876b8e5f220baa95f53a8f2241dcb96213d5eec

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.push "#{Dir.pwd}/lib"
require 'goldendocx'

docx = Goldendocx::Docx.new

docx.create_text('Hello World!')
docx.create_text('Hello World!', align: :center, color: 'FF8533', bold: true)

filename = 'plainTextDocument.docx'
system "rm -f ~/Desktop/#{filename}" # -f so that we don't have an error if the file doesn't exist
docx.write_to File.expand_path("~/Desktop/#{filename}")
exec "open ~/Desktop/#{filename}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
goldendocx-0.3.0 demo/texts/create_text.rb
goldendocx-0.2.3 demo/texts/create_text.rb