Hi All,

I am trying to write a simple to code to just parse the text data from a pdf
file onto the console.I am hitting the below exception

java.io.IOException: expected='startxref' actual=''
org.pdfbox.io.pushbackinputstr...@100ab23
at org.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:355)
at org.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:176)
at PDFTextParser.pdftoText(PDFTextParser.java:49)
at PDFTextParser.main(PDFTextParser.java:93)
PDF to Text Conversion failed.

Can someone please help? I have attached the Java class file.

-- 
thanks,
Pramod Pradhan
(361)228-3989

Reply via email to