Package | Description |
---|---|
cn.hutool.poi.word |
POI中对Word操作封装
|
Modifier and Type | Method and Description |
---|---|
Word07Writer |
Word07Writer.addPicture(File picFile,
int width,
int height)
增加图片,单独成段落
|
Word07Writer |
Word07Writer.addPicture(InputStream in,
PicType picType,
String fileName,
int width,
int height)
增加图片,单独成段落,增加后图片流关闭,默认居中对齐
|
Word07Writer |
Word07Writer.addPicture(InputStream in,
PicType picType,
String fileName,
int width,
int height,
org.apache.poi.xwpf.usermodel.ParagraphAlignment align)
增加图片,单独成段落,增加后图片流关闭
|
Word07Writer |
Word07Writer.addTable(Iterable<?> data)
增加表格数据
|
Word07Writer |
Word07Writer.addText(Font font,
String... texts)
增加一个段落
|
Word07Writer |
Word07Writer.addText(org.apache.poi.xwpf.usermodel.ParagraphAlignment align,
Font font,
String... texts)
增加一个段落
|
Word07Writer |
Word07Writer.flush()
将Excel Workbook刷出到预定义的文件
如果用户未自定义输出的文件,将抛出 NullPointerException 预定义文件可以通过 setDestFile(File) 方法预定义,或者通过构造定义 |
Word07Writer |
Word07Writer.flush(File destFile)
将Excel Workbook刷出到文件
如果用户未自定义输出的文件,将抛出 NullPointerException |
Word07Writer |
Word07Writer.flush(OutputStream out)
将Word Workbook刷出到输出流
|
Word07Writer |
Word07Writer.flush(OutputStream out,
boolean isCloseOut)
将Word Document刷出到输出流
|
static Word07Writer |
WordUtil.getWriter()
创建Word 07格式的生成器
|
static Word07Writer |
WordUtil.getWriter(File destFile)
创建Word 07格式的生成器
|
Word07Writer |
Word07Writer.setDestFile(File destFile)
设置写出的目标文件
|
Copyright © 2024. All rights reserved.