Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To load and save a word document to disk using Aspose.Words Java for Ruby, simply invoke save_to_disk() method of LoadAndSaveToDisk module.
Ruby Code
## 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")
Download Load And Save To Disk (Aspose.Words) from any of the below mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.