在 Java 中将 PDF 转换为 Word [英] Convert PDF to Word in Java

查看:34
本文介绍了在 Java 中将 PDF 转换为 Word的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 Java 中将 PDF 转换为 Word?我不是在谈论解析 PDF 文档,然后将其再次自定义呈现到 Word.我想要一个可以直接转换的Java库.

Is it possible to convert PDF to Word in Java? I'm not talking about parsing a PDF document and then custom render it again to Word. I want a Java library that can directly convert it.

推荐答案

阅读 PDF 文档是一个非常复杂的过程,并且没有好的免费库可以在 Java 中从 PDF 文档中提取非文本信息.更糟糕的是,PDF 文档有很多难以重构的布局信息,例如 Word 文档中的表格变成了 PDF 中的几行和一堆文本.

Reading PDF documents is a very involved process and there are no good free libraries for extracting non-text information from PDF documents in Java. Worse yet, PDF documents have a lot of layout information that is hard to reconstruct, for example a table in a Word document becomes some lines and a bunch of pieces of text in PDF.

这篇关于在 Java 中将 PDF 转换为 Word的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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