Sha256: 55d57ff5bcf94a17dd106d2deff2ba6f851cc684d286b263c1a072644215bc37

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

module Asposewordsjavaforruby
  module LoadAndSaveToDisk
    def initialize()
        # Load and save the document.
        save_to_disk()
    end
        
    def save_to_disk()
        # The path to the documents directory.
        data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/quickstart/'

        # Open the document.
        doc = Rjb::import('com.aspose.words.Document').new(data_dir + "Document.doc")

        # Save the document as DOCX document.
        doc.save(data_dir + "Document Out.docx")
    end 

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposewordsjavaforruby-0.0.5 lib/asposewordsjavaforruby/loadandsavetodisk.rb