How Can i write a java code which scan a document from scanner and shows me in java tree. When i click scan, it scans domucemts on my scanner and shows me in the window. How can i write this? Is there any code example?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This task you are planning is very complex if you want to build the whole application by yourself.
But with help of third-party tools you can do it with few lines of code.
Steps:
Use another software/library to extract text from pdf. As I googled, came across PDFBox API.
Example of using the API here
Modify the class above or write a new class that will read the text file and construct the tree structure.