Load And Save To Disk in Jython

Aspose.Words - Load And Save To Disk

To Load And Save a Document to Disk using Aspose.Words Java for Jython. Here you can see example code.

Jython Code

from aspose-words import Settings
from com.aspose.words import Document
class LoadAndSaveToDisk:
    def __init__(self):
        dataDir = Settings.dataDir + 'quickstart/'
        doc = Document(dataDir + 'Document.doc')
        doc.save(dataDir + 'Document_Out.doc')
        print "Document saved."
if __name__ == '__main__':
    LoadAndSaveToDisk()

Download Running Code

Download running code from any of the below mentioned social coding sites: