You can find all details at: Convert Image to Word Document (DOCX) with OCR using C#
Last active
June 21, 2021 19:24
-
-
Save aspose-com-gists/3354720c8cd171a4934e0d7a9d0f6ce1 to your computer and use it in GitHub Desktop.
Convert Image to Word Document (DOCX) with OCR using C# | PNG JPG BMP TIFF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an instance of AsposeOcr | |
AsposeOcr api = new AsposeOcr(); | |
// Recognize image with OCR | |
RecognitionResult result = api.RecognizeImage("sample.png", new RecognitionSettings { }); | |
// Save the result in your Word Document format with spellcheck | |
result.Save("Sample_SpellCheck.docx", SaveFormat.Docx, true, SpellChecker.SpellCheckLanguage.Eng); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an instance of AsposeOcr | |
AsposeOcr api = new AsposeOcr(); | |
// Recognize input image | |
RecognitionResult result = api.RecognizeImage("sample.png", new RecognitionSettings { }); | |
// Save the result in Microsoft Word Document format | |
result.Save("sample.docx", SaveFormat.Docx); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment