开发者

How to convert pdf to doc file in java

need to convert a pdf file to a doc file. I found different type of example to generate pdf file but not got pdf to开发者_如何学运维 doc.


What your asking is actually very difficult

I recommend you start here and look for a good parsing library. then you would have to write it out in .doc format. Inevitably a lot of the formatting and extra information would be lost. it would be a lot easier to output to docx format, but i assume thats not what your looking for.


I see few possible solutions:

  1. Davisor Publishor 6.2 probably can be used, but it is commercial, and seems that generates only txt from pdf... just have a look

  2. parse pdf with iText, and then generate doc with Apache POI - another way to try (free one ;)

  3. look for command line tools, like Convert PDF To DOC and execute them from java

Otherwise take a look at Con's answer, there is a link to the list with java pdf processing libraries, maybe some library can do it directly, or can be used to parse pdf (better than iText), and then just use Apache POI to generate doc. Hope it helps ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜