Hello World in Python

Aspose.Words - Hello World

To Write anything in the Word Document using Aspose.Words for Java in Python, simply invoke writeIn method of DocumenBuilder class.

Python Code

Document = jpype.JClass("com.aspose.words.Document")
DocumentBuilder = jpype.JClass("com.aspose.words.DocumentBuilder")
doc = Document()
builder = DocumentBuilder(doc)
builder.writeln('Hello World!')

Download Running Code

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