Append Documents in Jython

Aspose.Words - Append Documents

To append documents 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
from com.aspose.words import ImportFormatMode
class AppendDocuments:
    def __init__(self):
        dataDir = Settings.dataDir + 'quickstart/'
        dstDoc = Document(dataDir + 'TestFile.Destination.doc')
        srcDoc = Document(dataDir + 'TestFile.Source.doc')
        dstDoc.appendDocument(srcDoc,ImportFormatMode.KEEP_SOURCE_FORMATTING) + 'AppendDocuments.doc')
        print ("Documents appended successfully.")
if __name__ == '__main__':

Download Running Code

Download Append Documents (Aspose.Words) from any of the below mentioned social coding sites: