File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conversion of Pdf Data to Text Data

 
Abdul Gafoor
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
I want to read pdf file .then selected data to write in a text file.
Actually I am using this way
PDDocument doc = PDDocument.load(ff.pdf);
if(doc != null && !doc.isEncrypted())
{
PDFTextStripper textStripper = new PDFTextStripper();
textStripper.setSortByPosition(true);

String str = textStripper.getText(doc);
}
But it is giving correct Output in windows, but if i am deploying in unix.
It will give core java dump file and server is shutting down.
Please give me any idea about that.
Thanks in advance.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just Googled for "PDDocument" and found it here: http://www.pdfbox.org/
So you are probably using that PDF library.

Have a look at that website, there are also forums there, it's probably a good idea to ask your question there.

- Which operating system are you running on? (not just "Unix" please, but: "IBM AIX version...", "HP-UX version ...")
- Which version of which JVM are you using (Sun, IBM, HP, GNU, ...?)
- Which app server software are you using?
 
Abdul Gafoor
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jesper,
Actually We are using IBM UNIX, Tomcat 5.5, JDk 1.5 and PDFBox 7.2
Still I have not got solution for this.
Please give me a solution for this.
Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic