使用Java API将任何文件类型转换为pdf [英] convert any file type to pdf using Java API

查看:992
本文介绍了使用Java API将任何文件类型转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否让我知道可以使用哪种Java API(开源-开发和商业)将任何文件类型(例如doc,docx,xl​​s,xlsx,ppt,pptx)转换为pdf.这些文件可能包含文本,图像,图形,图表,样式等.

Can you please let me know which java api (open source - Devlopment & Commercial) can be used to convert any file type (e.g. doc, docx, xls, xlsx, ppt, pptx) to pdf. Those files may contain text, image, graph,chart, style etc.

谢谢.

推荐答案

您可以使用iText库来创建pdf文档,请参见: http ://itextpdf.com/.要阅读我建议使用apache poi库的doc,docx,xl​​s等文件,请参见: http://poi.apache .org/

You can user iText library for creating pdf documents, see: http://itextpdf.com/. For reading the doc, docx, xls, etc. files I suggest using apache poi library, see: http://poi.apache.org/

这篇关于使用Java API将任何文件类型转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆