Free Support Forum - aspose.com

Reading a PDF document using PDf.Kit for Java

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

Hi Sam,

First of all, please make sure that you’re using the latest version of Aspose.Pdf.Kit for Java. Secondly, if it still doesn’t resolve your issue then please share the input PDF file with us so we could investigate the issue at our end.

We’re sorry for the inconvenience.
Regards,