开发者

Is it possible to convert pdf to text? [closed]

开发者 https://www.devze.com 2023-03-31 10:50 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_Python百科
Closed. This question needs to be more focused. It is not currently accepting answers.
开发者_Python百科

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 2 years ago.

Improve this question

In my application I am downloading pdf file from the net. Is it possible in Android to convert that pdf file into text (String or character)?


Actually, it is possible to convert PDF to text. A better term than convert would be extract though.

You only need an OCR tool if the PDF has images only. This is typically the case if the PDF is a result of scanning documents. But even then, text is often inserted by the scan driver as invisible text so that the PDF content can be searched.


Bruno Lowagie (Developer of iText) says unfortunately no.

That's very normal. It's 'in the nature' of PDF. PDF is a one-way process. The PDF is the end product. You are not supposed to convert it to text.

You need an OCR tool.

http://itext-general.2136553.n4.nabble.com/Convert-PDF-to-text-td2142916.html

Regards Stefan

0

精彩评论

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