Aspose word 清空段落的边框以及底纹

private static void clearShadingFormat(Document doc) {
        for (Section section : doc.getSections()) {
            Paragraph[] paragraphs = section.getBody().getParagraphs().toArray();
            for (Paragraph paragraph : paragraphs) {
                paragraph.getParagraphFormat().clearFormatting();
            }
        }
}

参考:

https://wenku.baidu.com/view/9455e76fe75c3b3567ec102de2bd960590c6d90e.html?_wkts_=1675233323798&bdQuery=aspose+%E8%AE%BE%E7%BD%AE%E6%AE%B5%E8%90%BD%E6%A0%BC%E5%BC%8F

http://www.jnnr.cn/a/9910.html

http://www.noobyard.com/article/p-yphaznbi-ev.html

https://my.oschina.net/u/5641601/blog/5556104

posted @ 2023-02-01 14:40  致力于工作  阅读(51)  评论(0)    收藏  举报