问题
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