Everything works exccept for pdf to text extraction with Java program