I am trying to read a pdf document using PDF.Kit for Java. The program reads it but when I do a getText to a file it does not write anything. Below is the code I am using to read the PDF.
PdfExtractor extractor = new PdfExtractor();
extractor.bindPdf(path + "test.PDF");
extractor.extractText();
extractor.getText(path + "text.txt");
Can someone please help.
Thank you.
Sam