public static void ss () throws Exception{
DocumentBuilder builder = new DocumentBuilder();
builder.writeln("Aspose.Words allows:");
builder.writeln();
// Start a numbered list with default formatting.
builder.getListFormat().applyNumberDefault();
builder.writeln("Opening documents from different formats:");
// Go to second list level, add more text.
builder.getListFormat().listIndent();
builder.writeln("DOC");
builder.writeln("PDF");
builder.writeln("HTML");
// Outdent to the first list level.
builder.getListFormat().listOutdent();
builder.writeln("Processing documents");
builder.writeln("Saving documents in different formats:");
// Indent the list level again.
builder.getListFormat().listIndent();
builder.writeln("DOC");
builder.writeln("PDF");
builder.writeln("HTML");
builder.writeln("MHTML");
builder.writeln("Plain text");
// Outdent the list level again.
builder.getListFormat().listOutdent();
builder.writeln("Doing many other things!");
// End the numbered list.
builder.getListFormat().removeNumbers();
builder.writeln();
builder.writeln("Aspose.Words main advantages are:");
builder.writeln();
// Start a bulleted list with default formatting.
builder.getListFormat().applyBulletDefault();
builder.writeln("Great performance");
builder.writeln("High reliability");
builder.writeln("Quality code and working");
builder.writeln("Wide variety of features");
builder.writeln("Easy to understand API");
// End the bulleted list.
builder.getListFormat().removeNumbers();
builder.getDocument().save("D:\\testMerge\\out.docx");
}