Git Product home page Git Product logo

Comments (3)

devswork avatar devswork commented on May 28, 2024

我也遇到这个问题了

from poi-tl.

jiamliang avatar jiamliang commented on May 28, 2024

public static final NumberingFormat BULLET = new NumberingFormat(NumFormat.BULLET, "●");

在 Word 里面无序列表的符号默认是 wingdings 字体,按照这个字体去显示这个圆点 “●” 就是图上的那个符号。
修改方法:

  1. 修改 Word 的无序列表符号的字体,设置成非 wingdings 系列字体就可以了;
  2. 修改这个代码,将这个圆点 “●” 替换为小写字母 “l”。小写字母 l 在 wingdings 字体里面就是这个圆点 “●”。
  3. Markdown 插件支持对 NumberingFormat 指定样式“Style”, 用户可以根据需要自己去设置 Word 输出的列表的样式(Style)

from poi-tl.

devswork avatar devswork commented on May 28, 2024

public static final NumberingFormat BULLET = new NumberingFormat(NumFormat.BULLET, "●");

在 Word 里面无序列表的符号默认是 wingdings 字体,按照这个字体去显示这个圆点 “●” 就是图上的那个符号。 修改方法:

  1. 修改 Word 的无序列表符号的字体,设置成非 wingdings 系列字体就可以了;
  2. 修改这个代码,将这个圆点 “●” 替换为小写字母 “l”。小写字母 l 在 wingdings 字体里面就是这个圆点 “●”。
  3. Markdown 插件支持对 NumberingFormat 指定样式“Style”, 用户可以根据需要自己去设置 Word 输出的列表的样式(Style)

感谢,不过我是 java bean 依据 docx 生成,目前改为用 区块对 来解决了,可以自定义列表前面的符号(任意字符),更加方便,而且只需要用 List 就可以了。

from poi-tl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.