• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Expected to read '%%EOF' instead started reading 'e'

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have got a small problem while extracting text from a PDF file



I am trying to search a particular word in PDF document. Am getting the

following exception when i use the statement :

PDDocument.load(fileName)



Error :

java.io.IOException: Error: Expected to read '%%EOF' instead started

reading 'e'

at

org.pdfbox.pdfparser.BaseParser.readExpectedString(BaseParser.java:1022)

at org.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:364)

at org.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:176)

at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:707)

at org.pdfbox.pdmodel.PDDocument.load(PDDocument.java:691)





Can somebody help me in solving this issue.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic