pdf parse to text in java

余生颓废 提交于 2019-12-07 17:50:14

问题


I have an Arabic PDF, and I want to parse it into text document using Java. I have tried many times, and the English words parse successfully but the Arabic words don't.

Can anyone recommend a solution that will convert the Arabic words properly as well?


回答1:


I think you can use iText for pdf manipulation using Java. It supports Arabic too.




回答2:


There are several libraries that come to mind. Apache Tika, iText or pdfbox will all more or less solve your problem. Although, I must put in a word for Tika, as it supports language detection, and can also handle other document types too.



来源:https://stackoverflow.com/questions/5217783/pdf-parse-to-text-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!