文档转换/查看
POJO类中的字段,配置`isDoc`属性后,则需要此配置来支持文档在线预览
1、安装OpenOffice
自行百度
2、配置文件
文件位置:dodo_framework_config.properties
dodo.doc2swf.converter.splitPage=false
dodo.doc2swf.encryption.is=false
dodo.doc2swf.encryption.secretkey=DODOSHOWDOCDODOSHOWDOCDODOSHOWDOCLOVE
dodo.doc2swf.encryption.dynamic.is=true
dodo.doc2swf.encryption.dynamic.secretkey.length=40
dodo.doc2swf.converter.office.home=/Applications/OpenOffice.app/Contents
dodo.doc2swf.converter.office.port=8100
dodo.doc2swf.converter.office.host=127.0.0.1
dodo.doc2swf.converter.office.protocol=SOCKET
dodo.doc2swf.converter.pdf.command=/usr/local/swftools/bin/pdf2swf ${in} -o ${out} -T 9 -s ignoredraworder -s enablezlib -s disablelinks -s languagedir\="${languagedir}"
dodo.doc2swf.converter.pdf.mode.singlePage.maxThread=5
3、POJO类中配置文档字段
@DodoField(sortSeq = 23, name = "文档字段", isDoc = true, maxFileSize = 1)
private String docField;
4、效果图
