ExtractText doesn't work on remote PDF

Tools
Palakorn
2005-10-24
2013-04-29
  • Palakorn
    Palakorn
    2005-10-24

    Hi,

    I've tried to extract text from PDF file residing in a remote URL, like this:

    ExtractText extractor = new ExtractText();
    String text = extractor.extract(URI.create("http://www.myurl.com/papers/doc.pdf"),null);

    Instead, it always point to a local directory and throws this exception:
    java.io.FileNotFoundException: C:\papers\doc.pdf (The system cannot find the path specified)

    Any solutions how to make it work?

    Thanks
    -Palakorn