• Post Reply Bookmark Topic Watch Topic
  • New Topic

Streams  RSS feed

 
saravanan ragunathan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

when i run this program it works fine.

but when i tried to read pdf file and write it to text file .it wont works right...
what is the problem

 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on what you mean by "works right". If you were expecting the PDF file to end up as a text file, then no - that's not how it works.

In general, a file is just a collection of bytes - just copying the bytes to a new file while changing the name doesn't do anything about the contents.

Libraries like Apache PDFBox can extract the text that's in a PDF.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!