Hi all,
We have one web application to automate ,after performing sequence of steps it will show up one hyper link to open the PDF file.
We are using webdriver with PDFBox to read data from PDF ,when we are testing with sample code able to get data.But in the application we are able to open PDF, after that getting below exception
Exception in thread "main" java.io.IOException: Error: End-of-File, expected line
at org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1535)
at org.apache.pdfbox.pdfparser.PDFParser.parseHeader(PDFParser.java:332)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:177)
at Reader.main(Reader.java:66)
Tried to resolve different ways but it did not work.
If anyone come across this situation.Please help us.
Thanks
Sri