简体   繁体   English

您如何以与使用扫描仪阅读 .txt 文件相同的方式阅读 .PDF 文件。 这是在java for android

[英]How do you read a .PDF file the same way you read .txt file using scanner. This is in java for android

I am trying to read a .pdf file the same way you read a .txt file.我正在尝试以与读取 .txt 文件相同的方式读取 .pdf 文件。 I need to parse the pdf file to obtain some information.我需要解析pdf文件以获取一些信息。

Refering to this Stack Exchange article (Your question is probably a duplicate)参考这篇 Stack Exchange 文章(你的问题可能是重复的)

How to read PDF files using Java? 如何使用Java阅读PDF文件?

Use a library like Apache's PDFBox to do it.使用像 Apache 的 PDFBox 这样的库来做到这一点。

Please do some basic research next time before you ask a question, I found tons of answers in about three minutes.下次提问前请先做一些基础研究,我在大约三分钟内找到了很多答案。

Cheers!干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM