导出到WPS的工具类,仅支持WPS2009/2010
| Fields inherited from class | Fields |
|---|---|
class ExportUtils |
request |
| Constructor and description |
|---|
WPSWordExportUtils
(javax.servlet.http.HttpServletRequest request) |
| Type | Name and description |
|---|---|
protected void |
renderOpinion(StringBuilder sb, String tableWidth, String opnContent, String opnSignature, String sigTime, String sigStyle)插入意见的表格(字:文字表) |
protected String |
renderParagraph(String txt)插入一段文字(字:段落) |
protected String |
renderPicture(String id, String style)在“字:句”中插入浮于文字上方的图片引用标签“字:锚点” |
protected String |
renderPictureDef(String id, String bin, String ext, String style)在"uof:对象集"中,插入图片定义“uof:其他对象”、“图:图形” |
protected String |
renderText(Object txt)直接插入字符串(字:文本串) |
String |
string(Object txt)直接插入字符串,如果为空则插入空串 |
| Methods inherited from class | Name |
|---|---|
class ExportUtils |
escapeXML, fileBinData, loadFileAsBase64, opinion, opinionDef, opinions, opinionsDef, paragraph, parseStyle, picture, pictureDef, renderOpinion, renderParagraph, renderPicture, renderPictureDef, renderText, signature, signatureDef, string, text |
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
插入意见的表格(字:文字表)
插入一段文字(字:段落)
txt - 文字内容在“字:句”中插入浮于文字上方的图片引用标签“字:锚点”
需要先定义(pictureDef)
style - 图片的大小、位置在"uof:对象集"中,插入图片定义“uof:其他对象”、“图:图形”
id - 图片的IDfileName - 位于template下的文件名直接插入字符串(字:文本串)
txt - 可以转成String的对象直接插入字符串,如果为空则插入空串
txt - 可以转成String的对象BROPEN Documentation, 2020-04-21 11:24