public final enum

OcrLanguage

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pspdfkit.document.processor.ocr.OcrLanguage

Class Overview

Supported languages for OCR. Values of this enum class should be used together with performOcrOnPages(Set, OcrLanguage). If you want to learn more about how to use OCR, please visit https://pspdfkit.com/guides/android/current/ocr/getting-started.

Summary

Enum Values
OcrLanguage  CROATIAN 

Croatian language (en) selector for OCR processing. 

OcrLanguage  CZECH 

Czech language (en) selector for OCR processing. 

OcrLanguage  DANISH 

Danish language (en) selector for OCR processing. 

OcrLanguage  DUTCH 

Dutch language (en) selector for OCR processing. 

OcrLanguage  ENGLISH 

English language (en) selector for OCR processing. 

OcrLanguage  FINNISH 

Finnish language (en) selector for OCR processing. 

OcrLanguage  FRENCH 

French language (en) selector for OCR processing. 

OcrLanguage  GERMAN 

German language (en) selector for OCR processing. 

OcrLanguage  INDONESIAN 

Indonesian language (en) selector for OCR processing. 

OcrLanguage  ITALIAN 

Italian language (en) selector for OCR processing. 

OcrLanguage  MALAY 

Malay language (en) selector for OCR processing. 

OcrLanguage  NORWEGIAN 

Norwegian language (en) selector for OCR processing. 

OcrLanguage  POLISH 

Polish language (en) selector for OCR processing. 

OcrLanguage  PORTUGUESE 

Portuguese language (en) selector for OCR processing. 

OcrLanguage  SERBIAN 

Serbian language (en) selector for OCR processing. 

OcrLanguage  SLOVAK 

Slovak language (en) selector for OCR processing. 

OcrLanguage  SLOVENIAN 

Slovenian language (en) selector for OCR processing. 

OcrLanguage  SPANISH 

Spanish language (en) selector for OCR processing. 

OcrLanguage  SWEDISH 

Swedish language (en) selector for OCR processing. 

OcrLanguage  TURKISH 

Turkish language (en) selector for OCR processing. 

OcrLanguage  WELSH 

Welsh language (en) selector for OCR processing. 

Public Methods
String getTrainedDataFilename()
Returns the name of the .traineddata file that is used for the given language.
static OcrLanguage valueOf(String name)
final static OcrLanguage[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final OcrLanguage CROATIAN

Croatian language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Croatian documents. When using this value, make sure you have the Croatian OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-croatian dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-croatian:$pspdfkit_version"
 }
 

public static final OcrLanguage CZECH

Czech language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Czech documents. When using this value, make sure you have the Czech OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-czech dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-czech:$pspdfkit_version"
 }
 

public static final OcrLanguage DANISH

Danish language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Danish documents. When using this value, make sure you have the Danish OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-danish dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-danish:$pspdfkit_version"
 }
 

public static final OcrLanguage DUTCH

Dutch language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Dutch documents. When using this value, make sure you have the Dutch OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-dutch dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-dutch:$pspdfkit_version"
 }
 

public static final OcrLanguage ENGLISH

English language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for English documents. When using this value, make sure you have the English OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-english dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-english:$pspdfkit_version"
 }
 

public static final OcrLanguage FINNISH

Finnish language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Finnish documents. When using this value, make sure you have the Finnish OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-finnish dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-finnish:$pspdfkit_version"
 }
 

public static final OcrLanguage FRENCH

French language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for French documents. When using this value, make sure you have the French OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-french dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-french:$pspdfkit_version"
 }
 

public static final OcrLanguage GERMAN

German language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for German documents. When using this value, make sure you have the German OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-german dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-german:$pspdfkit_version"
 }
 

public static final OcrLanguage INDONESIAN

Indonesian language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Indonesian documents. When using this value, make sure you have the Indonesian OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-indonesian dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-indonesian:$pspdfkit_version"
 }
 

public static final OcrLanguage ITALIAN

Italian language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Italian documents. When using this value, make sure you have the Italian OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-italian dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-italian:$pspdfkit_version"
 }
 

public static final OcrLanguage MALAY

Malay language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Malay documents. When using this value, make sure you have the Malay OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-malay dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-malay:$pspdfkit_version"
 }
 

public static final OcrLanguage NORWEGIAN

Norwegian language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Norwegian documents. When using this value, make sure you have the Norwegian OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-norwegian dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-norwegian:$pspdfkit_version"
 }
 

public static final OcrLanguage POLISH

Polish language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Polish documents. When using this value, make sure you have the Polish OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-polish dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-polish:$pspdfkit_version"
 }
 

public static final OcrLanguage PORTUGUESE

Portuguese language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Portuguese documents. When using this value, make sure you have the Portuguese OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-portuguese dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-portuguese:$pspdfkit_version"
 }
 

public static final OcrLanguage SERBIAN

Serbian language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Serbian documents. When using this value, make sure you have the Serbian OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-serbian dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-serbian:$pspdfkit_version"
 }
 

public static final OcrLanguage SLOVAK

Slovak language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Slovak documents. When using this value, make sure you have the Slovak OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-slovak dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-slovak:$pspdfkit_version"
 }
 

public static final OcrLanguage SLOVENIAN

Slovenian language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Slovenian documents. When using this value, make sure you have the Slovenian OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-slovenian dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-slovenian:$pspdfkit_version"
 }
 

public static final OcrLanguage SPANISH

Spanish language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Spanish documents. When using this value, make sure you have the Spanish OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-spanish dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-spanish:$pspdfkit_version"
 }
 

public static final OcrLanguage SWEDISH

Swedish language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Swedish documents. When using this value, make sure you have the Swedish OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-swedish dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-swedish:$pspdfkit_version"
 }
 

public static final OcrLanguage TURKISH

Turkish language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Turkish documents. When using this value, make sure you have the Turkish OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-turkish dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-turkish:$pspdfkit_version"
 }
 

public static final OcrLanguage WELSH

Welsh language (en) selector for OCR processing. Use this value with performOcrOnPages(Set, OcrLanguage) when performing text detection for Welsh documents. When using this value, make sure you have the Welsh OCR language pack added to your app, by adding the com.pspdfkit:pspdfkit-ocr-welsh dependency inside your build.gradle file:


 final String pspdfkit_version = {@value com.pspdfkit.PSPDFKit#VERSION};
 dependencies {
     implementation "com.pspdfkit:pspdfkit-ocr:$pspdfkit_version"
     implementation "com.pspdfkit:pspdfkit-ocr-welsh:$pspdfkit_version"
 }
 

Public Methods

public String getTrainedDataFilename ()

Returns the name of the .traineddata file that is used for the given language.

Returns
  • Name of the language trained data file, without the extension.

public static OcrLanguage valueOf (String name)

public static final OcrLanguage[] values ()