Java 中的文档渲染
我想从服务器端 Java 将 MSWord、PDF、HTML 等渲染为图像(例如 TIFF)。
大多数可用产品都是共享软件打印机驱动程序,因此不适合商业服务器应用程序:我希望该库功能强大、支持良好、高性能且并发。
对开源或商业图书馆有什么建议吗?
I want to render MSWord, PDF, HTML, etc to an image (e.g. TIFF) from server-side Java.
Most available products are shareware printer drivers, and so not suited to a commercial server app: I'd like the library which is robust, well-supported, performant, and concurrent.
Any suggestions for open-source or commercial libraries?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅这些:
如果您在搜索中没有找到它们,请不要感到难过,您可能只是使用了 SO 搜索,而不是谷歌搜索“site:stackoverflow.com 转换 pdf 图像 java”(等)。
Refer to these:
And if you didn't find them in a search don't feel bad, you probably just used the SO search instead of googling for "site:stackoverflow.com convert pdf image java" (etc).
似乎在这个 API 的某个地方,iText,您将能够将 PDF 渲染为图像。 对于 HTML,您可以考虑 Flying Saucer(但该项目看起来很糟糕)。 遗憾的是 JWebPane 尚未准备好。
对于 MSWord...没有任何线索。
Seems that somewhere in this API, iText, you'll be able to render a PDF to an image. For HTML you may consider Flying Saucer (but the project looks deadish). Shame that JWebPane isn't ready yet.
For MSWord ... no clue.