Show only licensed languages

  • 88 Views
  • Last Post 06 March 2017
  • Topic Is Solved
Angelo posted this 01 March 2017

I need to create a language selector for OCR processing of documents. I can list all available languages getting them from engine.PredefinedLanguages and i can narrow the list by showing only a specific subset with a specific FREngine.LanguageCategoryEnum (like core languages).

However this list is not relative to current license available languages. In current license there is a bitmapped field named AvailableLanguageSetsFlags which defines the subsets available but I haven't understood how (and if) I can use this information to filter only available languages.

Is there a way to show only languages available with currently loaded license?

Oksana Serdyuk posted this 06 March 2017

Hi, please accept my apologies for the delay in response.

You can use the AvailablePredefinedLanguages property of the Engine object to get the collection of all predefined languages that are available under the current license. See the Developer's Help → API Reference → Engine Object (IEngine Interface) → Properties.

  • Liked by
  • Angelo
Close