OCR Languages Use Standard Codes on Every Converter

P
Paulius
ConvertAPI

Every converter with OCR now accepts the same 27 languages, set with standard language codes such as fr, uk or zh-Hans. Old codes keep working, so existing requests need no change.

Highlights

  • The OcrLanguage parameter takes BCP 47 codes, the language codes used by browsers and most APIs.
  • PDF to Word, Excel, PowerPoint, RTF, HTML, JSON and TXT, JPG and PNG to Word and PowerPoint, and PowerPoint to TXT now also read Hebrew (he), Lithuanian (lt) and Chinese Traditional (zh-Hant).
  • Old codes are still accepted but no longer listed in the API documentation: fa for French, ua for Ukrainian, zh and zh-cn for Chinese Simplified, and zh-tw for Chinese Traditional.

Parameters

  • OcrLanguage (default en, or auto on the converters that offer it) - one of ar Arabic, ca Catalan, zh-Hans Chinese Simplified, zh-Hant Chinese Traditional, da Danish, nl Dutch, en English, fi Finnish, fr French, de German, el Greek, he Hebrew, it Italian, ja Japanese, ko Korean, lt Lithuanian, no Norwegian, pl Polish, pt Portuguese, ro Romanian, ru Russian, sl Slovenian, es Spanish, sv Swedish, th Thai, tr Turkish, uk Ukrainian. auto detects the language on PDF to Word, Excel, PowerPoint, RTF, HTML and JSON with the default OCR engine. PDF to TXT, PowerPoint to TXT, and JPG and PNG to Word and PowerPoint read auto as English, so set the language for scans in other languages.

Fixes

  • PDF to OCR, PDF to CSV, PDF to Redact, and JPG, PNG and TIFF to TXT - fr was rejected, and French was only available as fa, which is the code for Persian.
  • PDF to TXT and PowerPoint to TXT - es read scanned pages as Estonian instead of Spanish.

Try it out