• word 列项处理


    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");
        }

  • 相关阅读:
    用 Visual Studio 调试器中查看内存中图像
    vue中diff算法原理
    URL中的参数提取
    TypeScript语法快速上手
    Day08_DM层建设实战,本地视频+md,review第1遍,220625,
    pdf转word文档方法
    Python 程序性能测试方法
    Vue和Element
    Ansible概述和模块解释(你刚走过了今天,而扑面而来的却是昨天)
    linux基础以及APUE学习总结
  • 原文地址:https://blog.csdn.net/HAN_789/article/details/126498053