1

I want to create reader/editor app. For that I came to know Pandoc is there which is basically universal document converter. So my question is how we can use pandoc in android as it is Haskell library for converting from one markup format to another, and a command-line tool that uses this library.

Is there any other tool available for reader/editor app which supports multi format type converter and reading/editing functionality in android app.

KishuDroid
  • 5,411
  • 4
  • 30
  • 47
  • Do you want to run pandoc itself on Android? If so, you may be able to run it in environments like [Termux](https://termux.com/). – kotatsuyaki Jul 12 '22 at 07:34
  • @kotatsuyaki No I want to use pandoc in my code as in backend process it will be used for converting files. – KishuDroid Jul 12 '22 at 09:24
  • By saying "backend process", did you mean a backend server, or did you mean a child process on an Android device? If you have a backend server, just run the pandoc executable on it. – kotatsuyaki Jul 12 '22 at 15:51
  • @kotatsuyaki Backend Process means Child process in android or you can say "Service" which will do things for me using pandoc. – KishuDroid Jul 13 '22 at 05:11
  • @kotatsuyaki Can you please also let me know how I can run it using Termux? – KishuDroid Jul 13 '22 at 05:24
  • 1
    (I'm not familiar with Android app dev) So you want to run some form of pandoc on Android devices themselves within your app. Since pandoc is [written as a Haskell library](https://hackage.haskell.org/package/pandoc), one possible route would be to go Haskell <-> C <-> Java / Kotlin, while it definitely wouldn't be an easy task. Alternatively you may try [running pandoc as a bundled native binary](https://stackoverflow.com/q/4703131/12122460). – kotatsuyaki Jul 13 '22 at 05:47
  • The Termux app provides Linux environments, so if you know how to run pandoc on any Linux distribution, it's more or less the same on Termux. – kotatsuyaki Jul 13 '22 at 05:48

0 Answers0