Sha256: 00fee65d79df6a8cde7425d80da6b40460409e181a4d005b1bcb2ea6b4af6fd2
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
module Asposewordsjavaforruby module LoadTxt def initialize() # The path to the documents directory. data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/' # Open the document. doc = Rjb::import('com.aspose.words.Document').new(data_dir + "LoadTxt.txt") # Save as any Aspose.Words supported format, such as DOCX. doc.save(data_dir + "LoadTxt Out.doc") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposewordsjavaforruby-0.0.5 | lib/asposewordsjavaforruby/loadtxt.rb |