mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-07 01:28:34 +08:00
Word07Writer增加addText重载,支持字体颜色(pr#1388@Gitee)
This commit is contained in:
parent
3d2dd38add
commit
ccaecf6bc9
@ -11,6 +11,7 @@
|
|||||||
* 【core 】 `Combination`和`Arrangement `重构避免数组频繁拷贝,并避免溢出(pr#4144@Github)
|
* 【core 】 `Combination`和`Arrangement `重构避免数组频繁拷贝,并避免溢出(pr#4144@Github)
|
||||||
* 【core 】 优化`EscapeUtil`,兼容不规范的转义(pr#4150@Github)
|
* 【core 】 优化`EscapeUtil`,兼容不规范的转义(pr#4150@Github)
|
||||||
* 【core 】 优化`ObjectUtil.contains`String改为CharSequence(pr#4154@Github)
|
* 【core 】 优化`ObjectUtil.contains`String改为CharSequence(pr#4154@Github)
|
||||||
|
* 【poi 】 `Word07Writer`增加addText重载,支持字体颜色(pr#1388@Gitee)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【jwt 】 修复verify方法在定义alg为`none`时验证失效问题(issue#4105@Github)
|
* 【jwt 】 修复verify方法在定义alg为`none`时验证失效问题(issue#4105@Github)
|
||||||
|
|||||||
@ -117,6 +117,18 @@ public class Word07Writer implements Closeable {
|
|||||||
return addText(null, font, color, texts);
|
return addText(null, font, color, texts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 增加一个段落
|
||||||
|
*
|
||||||
|
* @param align 段落对齐方式{@link ParagraphAlignment}
|
||||||
|
* @param font 字体信息{@link Font}
|
||||||
|
* @param texts 段落中的文本,支持多个文本作为一个段落
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public Word07Writer addText(ParagraphAlignment align, Font font, String... texts) {
|
||||||
|
return addText(align, font, null, texts);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 增加一个段落
|
* 增加一个段落
|
||||||
*
|
*
|
||||||
@ -125,6 +137,7 @@ public class Word07Writer implements Closeable {
|
|||||||
* @param color 字体颜色{@link Color}
|
* @param color 字体颜色{@link Color}
|
||||||
* @param texts 段落中的文本,支持多个文本作为一个段落
|
* @param texts 段落中的文本,支持多个文本作为一个段落
|
||||||
* @return this
|
* @return this
|
||||||
|
* @since 5.8.42
|
||||||
*/
|
*/
|
||||||
public Word07Writer addText(ParagraphAlignment align, Font font, Color color, String... texts) {
|
public Word07Writer addText(ParagraphAlignment align, Font font, Color color, String... texts) {
|
||||||
final XWPFParagraph p = this.doc.createParagraph();
|
final XWPFParagraph p = this.doc.createParagraph();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user