最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - How to remove default formatting(indents and line spacing) when using docx4j `mainDocumentPart.convertAltChunks()`? - Sta

programmeradmin0浏览0评论

When using a HTML content string, embedded as a altchunk in docx using docx4j, and converted to docx elements using mainDocumentPart.convertAltChunks(), by default there is some indentation and line spacing applied which I want to customize only for the whole altchunk converted..

Tried decreasing the indentation by 0.08 for all the elements which cause issues with non-altchunk converted elements that could possibly be excluded.

Is there a more subtle way to have no formatting applied over altchunk converted elements or apply default formatting over only these elements?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论