一、在线预览
1. api使用
ofd文件在线预览: 使用方式:
格式:/ofdViewer/viewer.html?file=1.ofd
相对路径
2. 案例
http://localhost:9090/ofdViewer/viewer.html?file=http://localhost:9090/ofd/1.ofd
3. 效果
二、ofd转odf
2.1. api使用
/**
* pdf转ofd
*
* @param pdfFileInputPath pdf文件路径
* @param ofdFileOutputPath ofd文件路径
*/
OfdPdfUtil.convertToOfdByStream(pdfFileInputPath, ofdFileOutputPath);
2.2. 参考案例
三、odf转ofd
3.1. api使用
/**
* pdf转ofd
*
* @param ofdFileOutputPath ofd文件路径
* @param pdfFileInputPath pdf文件路径
*/
OfdPdfUtil.ofdToPdf(ofdFileInputPath, pdfFileOutputPath);
3.2. 参考案例
3.3. 开源项目
https://gitee.com/gblfy/ofd-pdf
小伙伴们,觉得好用,欢迎Star