java代码分享,利用openoffice把word,execl,ppt,pdf转成图片

上传者: rjliulei | 上传时间: 2021-06-03 20:53:58 | 文件大小: 3.17MB | 文件类型: RAR
开发移动端APP的时候,经常遇到需要浏览Office(word,excel,ppt)以及PDF附件,在移动端无法直接浏览这些附件内容,常用的解决方法就是把这些附件转换成图片,然后在移动端浏览。 此代码中提供了把office,pdf文件转换成图片的方法,需要OpenOffice软件的支持,所以先下载一个OpenOffice软件并安装好。 代码中: Entry.java这个类的原理是先通过OfficeToPDF.java把文档转成pdf, 然后再通过Pdf2Jpg.java这个类把PDF转成JPG或者PNG, 想转成什么格式图片在Pdf2Jpg.java这个类当中设置一下。 代码经过测试,完全没有问题,如果碰到问题,可以联系我进行详细解答。

文件下载

资源详情

[{"title":"( 27 个子文件 3.17MB ) java代码分享,利用openoffice把word,execl,ppt,pdf转成图片","children":[{"title":"OfficeTojpg","children":[{"title":".project <span style='color:#111;'> 387B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"g","children":[{"title":"Entry.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"Tojpg","children":[{"title":"Pdf2Jpg.java <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false}],"spread":true},{"title":"ConvertUtil","children":[{"title":"OpenOfficePdfConvert.java <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"FileUtil.java <span style='color:#111;'> 813B </span>","children":null,"spread":false}],"spread":true},{"title":"OfficeToPDF.java <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"libs","children":[{"title":"slf4j-api-1.5.6.jar <span style='color:#111;'> 21.81KB </span>","children":null,"spread":false},{"title":"slf4j-jdk14-1.5.6.jar <span style='color:#111;'> 8.61KB </span>","children":null,"spread":false},{"title":"jodconverter-cli-2.2.2.jar <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false},{"title":"jodconverter-2.2.2.jar <span style='color:#111;'> 31.30KB </span>","children":null,"spread":false},{"title":"jodconverter-core-3.0-beta-4.jar <span style='color:#111;'> 68.17KB </span>","children":null,"spread":false},{"title":"jurt-3.0.1.jar <span style='color:#111;'> 105.79KB </span>","children":null,"spread":false},{"title":"ridl-3.0.1.jar <span style='color:#111;'> 247.67KB </span>","children":null,"spread":false},{"title":"icepdf-core.jar <span style='color:#111;'> 1.44MB </span>","children":null,"spread":false},{"title":"juh-3.0.1.jar <span style='color:#111;'> 54.32KB </span>","children":null,"spread":false},{"title":"unoil-3.0.1.jar <span style='color:#111;'> 1.30MB </span>","children":null,"spread":false},{"title":"commons-cli-1.2.jar <span style='color:#111;'> 40.16KB </span>","children":null,"spread":false},{"title":"DEPENDENCIES.txt <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"commons-io-1.4.jar <span style='color:#111;'> 106.49KB </span>","children":null,"spread":false},{"title":"xstream-1.3.1.jar <span style='color:#111;'> 421.29KB </span>","children":null,"spread":false}],"spread":false},{"title":".classpath <span style='color:#111;'> 757B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"com","children":[{"title":"g","children":[{"title":"Tojpg","children":[{"title":"Pdf2Jpg.class <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"OfficeToPDF.class <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"ConvertUtil","children":[{"title":"OpenOfficePdfConvert.class <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"FileUtil.class <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"Entry.class <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 世子扶墙 :
    楼主,这个项目部署到liunx上以后还能用吗?希望能回复
    2018-09-15
  • want1615 :
    ok,有参考意义。
    2018-04-10
  • AnyExieYun :
    先用着试试。。。。
    2018-04-09
  • victor杨 :
    改了改刚好用到项目中
    2017-05-22
  • yuchunqiu2660 :
    楼主可以加QQ问一下吗?我的QQ是:1506411201,挺着急的
    2017-03-16

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明