Sha256: 59cc68ab5c887a8af4787fd203a1e55513107704eca7aa5b25b8e738677307f1
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.push "#{Dir.pwd}/lib" require 'goldendocx' docx = Goldendocx::Docx.new.read_from("#{Dir.pwd}/demo/templates/blankDocument.docx") docx.create_text('Hello World!') 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/append_plain_text.rb |
goldendocx-0.2.3 | demo/texts/append_plain_text.rb |