I am trying to read a .pdf file the same way you read a .txt file. I need to parse the pdf file to obtain some information.
Refering to this Stack Exchange article (Your question is probably a duplicate)
How to read PDF files using Java?
Use a library like Apache's PDFBox to do it.
Please do some basic research next time before you ask a question, I found tons of answers in about three minutes.
Cheers!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.