Localization

PDFTron ships with many languages built-in:

  • Arabic (ar)
  • Catalan (ca)
  • Chinese Simplified (zh-rCN)
  • Chinese Traditional (zh-rTW)
  • Czech (cs)
  • Danish (da)
  • Dutch (nl)
  • French(fr)
  • German (de)
  • Hindi (hi)
  • Hungarian (hu)
  • Indonesian (id)
  • Irish (ga-rIE)
  • Italian (it)
  • Japanese (ja)
  • Persian (fa)
  • Polish (pl)
  • Portuguese, Brazilian (pt-rBR)
  • Russian (ru)
  • Spanish (es-rES)
  • Turkish (tr)

You can add additional translations by putting them into the res/values-xx directory of your app (i.e. values-fr) . Android will automatically merge all string resources at build time. You can also override existing string translations by putting them into the respective string folders.

Since PDFTron tools and utils packages are all open-source, you will have access to all string and translation resources.