JAVA Extract text from PDF using PDFBox library OCR Optical Character Recognition

In this video I have shown how you can extract text from PDF using java.
All the dependencies and project source code is below.

1. Project Structure in Eclipse IDE.

2. All the dependencies jar is shown below. You have to download all and put in class path.
You can see the video how you can put it in class path.

Download all the jars here,pdfbox jars

3.OCR_PDF_Test.java
Below code you can use for Reading PDF,

4 . The console after reading the pdf content is shown below.