oarword(船桨Word)是JavaScript做的 Doc/Docx编辑器。暂时只支持Chrome。
1.组件
1.1oarword-js:js文件,加入到项目的WEBROOT
1.2oarword-java:servlets
1.2.1 depend jars download: https://pan.baidu.com/share/link?shareid=327061688&uk=24329091701.2.2 includs: docx4j-2.8.1,fileupload-1.3,httpclient4.2.5,dom4j-1.6.1,gson-2.2.4,jodconverter(modified)-3b4,pdfbox-1.8.21.3libreoffice4:作为服务
1.3.1 start command: soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard1.3.2 stop command: soffice -headless -unaccept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard2.配置
2.1 js config: oarword-js/js/config.js2.2 java config: oarword-java/src/config.properties3.部署
3.1create'oarword'directoryasWEBROOT3.2copyfilesin'oarword-js'to'oarword'3.3copy'WEB-INF'and'META-INF'in'oarword-java'to'oarword'3.4buildoarword-java'sprojectwithjarsin'oarword-depend-lib.zip'and'servlet-api.jar'andcopy'build/classes'to'oarword/WEB-INF'3.5unzip'oarword-depend-lib.zip'andcopy'lib'to'oarword/WEB-INF'3.6createdirectory'upload'and'tmp'in'oarword',makesurethesedirectoriesarewritable3.7deploy'oarword'inTomcat83.8installChinesefonts,如果使用中文字体,需要在服务器端安装中文字体。将字体拷贝到/usr/share/fonts/msfonts,sudofc-cache-fv4.截图
评论