You scan a bilingual menu. The dish names are in Italian. The descriptions are in English. The prices are numbers that are language-independent. You need to extract only the Italian text to create an Italian-language word list, or only the English text to send to a translator for another language pair. Running OCR on the entire document produces a mix of both languages, which is fine for searchability but not for selective extraction.
Extracting text in only one language from a multi-language OCR PDF document requires an OCR engine that can identify which language each text block is written in and extract only the blocks matching your target language. This is a more selective operation than standard OCR, which recognizes all text regardless of language.

How Language-Selective OCR Works
OCR engines with multi-language support can be configured to recognize text in multiple languages simultaneously. When you specify "Italian and English" as the OCR languages, the engine recognizes text in both. It also tags each recognized text block with the language it was recognized in. A block of Italian text is tagged as Italian. A block of English text is tagged as English. The language tagging enables selective extraction.
After OCR, you can filter the recognized text by language tag. Export only the blocks tagged as Italian. The output is a document containing only the Italian text from the menu. The English descriptions, recognized but filtered out, do not appear in the output. This selective extraction is useful for translation workflows, language learning materials, and content analysis where you need text in a specific language isolated from surrounding text in other languages.
Try PDF OCR
No installation needed. Works directly in your browser.
Step by Step: Extracting Text in a Specific Language
Upload the scanned PDF to WukongPDF's OCR tool. Select the languages present in the document. For the Italian-English menu, select both Italian and English. Run the OCR. The tool recognizes all text and tags each block by language. After OCR completes, use the language filter to select Italian. Export the filtered text as a plain text file, a Word document, or a new PDF containing only the Italian blocks.
The accuracy of language detection depends on the distinctiveness of the languages. Italian and English use the same alphabet but have different word patterns. The OCR engine distinguishes them by analyzing word frequencies. Italian has many words ending in vowels. English has many words ending in consonants. The more distinct the languages, the more accurate the language tagging. Two closely related languages, such as Spanish and Portuguese, may be confused by the engine on short text blocks.
Handling Mixed-Language Text on the Same Line
Some documents mix languages within a single line, such as a language textbook that pairs a sentence in French with its translation in English on the same line. The OCR engine may classify the entire line as the dominant language, mis-tagging the minority-language words. For these documents, language-selective extraction at the block level is not precise enough. You need a different approach.
The alternative is to run OCR twice, once with each language as the single recognition language. The Italian-only OCR pass recognizes Italian text well but mangles English text. The English-only pass recognizes English well but mangles Italian. Compare the two outputs and manually select the correct version for each text segment. This dual-pass approach takes more time but produces the most accurate language-specific extraction for documents where languages are interleaved at the sentence level.
Verifying and Cleaning the Extracted Text
After extracting text in the target language, verify that the language filtering was accurate. Scan the extracted text for words that are clearly in the wrong language. An Italian text extraction from a menu should not contain English words like "grilled" or "served with" unless the menu intentionally used those words in the Italian descriptions. Filtered text that contains unexpected foreign words indicates language tagging errors that need manual correction.
Run a spell check in the target language. Italian spell check will flag English words that were incorrectly included in the Italian extraction. The spell check flags are an efficient way to find language-tagging errors without reading every extracted word. The Extract PDF Data that has been language-filtered and spell-checked is ready for translation, analysis, or archival. WukongPDF's Scanned PDF OCR with language filtering produces cleaner single-language extracts than post-processing mixed-language OCR output to remove the unwanted language.
A practical application for language-selective OCR: creating bilingual glossaries from translated documents. Extract all the source-language terms and all the target-language terms separately. Align them by their positions on the page, since each source term has a corresponding target term at approximately the same vertical position on the page or in an adjacent column. The aligned output becomes a term list that translators can use to ensure consistency across future translations. This glossary-building technique is widely used in technical translation where consistent terminology is critical.
For documents where languages are in separate columns, such as a two-column bilingual contract, language-selective extraction becomes a column-selection task. The left column is one language, the right column is another. Instead of relying on language detection, which can confuse similar languages, crop the PDF to extract each column separately. Run single-language OCR on each column. This column-cropping approach is more reliable than language filtering for documents with clear columnar language separation.
For archival projects involving historical multi-language documents, language-selective OCR combined with metadata tagging creates a searchable archive where researchers can find content in a specific language across thousands of documents. Each document's OCR output is tagged with the languages detected. A researcher searching for 18th-century French documents can filter to only French-language text across a multilingual collection. This selective approach transforms archival OCR from a blunt tool that mixes languages into a precision instrument for linguistic research.
Try PDF OCR
No installation needed. Works directly in your browser.
