You can find all details at: Convert Image to Searchable Word Document (DOC/DOCX) using Java
Last active
June 22, 2021 22:00
-
-
Save aspose-com-gists/c5c7178f1826f90504157030c4289ee1 to your computer and use it in GitHub Desktop.
Convert JPG PNG TIFF BMP image to Searchable Word Document DOC/DOCX using Java
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(); | |
// Instantiate RecognitionSettings class object | |
RecognitionSettings settings = new RecognitionSettings(); | |
// Recognize image with OCR using RecognizePage method | |
com.aspose.ocr.RecognitionResult result = api.RecognizePage("sample.png", settings); | |
// Save the result in Word Document (DOC/DOCX) format with spellcheck | |
result.saveSpellCheckCorrectedText("Sample_SpellCheck.docx", Format.Docx, 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(); | |
// Instantiate RecognitionSettings class object | |
RecognitionSettings settings = new RecognitionSettings(); | |
// Recognize input image with RecognizePage method | |
RecognitionResult result = api.RecognizePage("sample.png", settings); | |
// Save the result in Microsoft Word Document format | |
result.save("sample.docx", Format.Docx); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment