• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Android: looking for app that can be called from another app to extract text from common file types

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

We're writing an app that performs some text processing. It can only work on raw UTF-8 text so we need some means of taking input files in common formats like RTF, DOC, PDF (with text) etc and extracting text from them. This text would then be passed to our app for processing.

I have been trying to port Tika and its parsers to Android with a lot of pain and little luck. A lot of incompatibilities of various 3rd party parser components... Then I remembered that when we wrote a similar app for the desktop a couple of years ago, we actually used OpenOffice (via a macro) to extract text by invoking OO as an external process.

So my question is this: do you know of a tool that (i) is not Tika; (ii) can extract Unicode text from common file formats and (iii) can somehow be forked off by our app so that we can pass the input files to it and then collect the extracted text?

By the way, even though this might be a topic for a separate question, but if you have successfully ported Tika to Android, can you let me know: I still have a glimmer of hope that it can be done.

Thanks much!
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The below link may be useful for you, I m not sure. You can try once.....
araxis.com/merge_mac/topic_comparing_text_files.html
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trying to get Tika to work on Android is a hopeless endeavour, I think.

Have you considered performing the text extraction on the server, and putting a REST WS on top of it for the mobile app to access?
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic