Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDF files

 
GK
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can java IO Streams read PDF files???

Gunjan
 
arvind s
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You will have to call acrobat reader from the console and pass your file into it.
Runtime.getRuntime().exec("AcroRd32.exe" + "filename");
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually yes, Java IO can read a PDF (after all it's simply a byte[]). If you want to display it, then arvind s provides the best answer. If you want to manipulate the Objects or even add to it, take a look at iText or etymon for help and guidance.

------------------
Hope This Helps
Carl Trusiak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic