OCR Languages Use Standard Codes on Every Converter
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
OcrLanguageparameter 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:
fafor French,uafor Ukrainian,zhandzh-cnfor Chinese Simplified, andzh-twfor Chinese Traditional.
Parameters
OcrLanguage(defaulten, orautoon the converters that offer it) - one ofarArabic,caCatalan,zh-HansChinese Simplified,zh-HantChinese Traditional,daDanish,nlDutch,enEnglish,fiFinnish,frFrench,deGerman,elGreek,heHebrew,itItalian,jaJapanese,koKorean,ltLithuanian,noNorwegian,plPolish,ptPortuguese,roRomanian,ruRussian,slSlovenian,esSpanish,svSwedish,thThai,trTurkish,ukUkrainian.autodetects 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 readautoas 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 -
frwas rejected, and French was only available asfa, which is the code for Persian. - PDF to TXT and PowerPoint to TXT -
esread scanned pages as Estonian instead of Spanish.
Try it out
- PDF to OCR - API sandbox: pdf-to-ocr
- PDF to Word - API sandbox: pdf-to-docx