Load And Save To Disk in Python

Aspose.Words - Load And Save To Disk

To load a word Document using Aspose.Words for Java in Python, simply create Document Object by providing it a document name with full path. To save a word Document using Aspose.Words for Java in Python, simply invoke save method of Document object.

Python Code

## The path to the documents directory.

dataDir = ""
\# Load the document from the absolute path on disk.
Document = jpype.jClass("com.aspose.words.Document")
doc = new Document(dataDir + "Document.doc")
\# Save the document as DOCX document.")
doc.save(dataDir + "Document Out.docx")

Download Running Code

Download Load And Save To Disk (Aspose.Words) from any of the below mentioned social coding sites: