You can find more details at: Create Scanned PDF to Excel Converter with OCR using C#
Last active
March 16, 2022 08:17
-
-
Save aspose-com-gists/17af428e962811d0b8aa74312b955115 to your computer and use it in GitHub Desktop.
Create Scanned PDF to Excel Converter with OCR in C# .NET
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
// Scanned PDF file path | |
string path = "Scanned.pdf"; | |
// Initialize AsposeOcr calss object | |
AsposeOcr api = new AsposeOcr(); | |
// Specify the settings for recognizing PDF file | |
DocumentRecognitionSettings settings = new DocumentRecognitionSettings(); | |
settings.StartPage = 0; | |
settings.PagesNumber = 1; | |
// Recognize pages from scanned PDF file | |
List<RecognitionResult> res = api.RecognizePdf(path , settings); | |
// Save the output result as an Excel file in XLSX format | |
AsposeOcr.SaveMultipageDocument("output.xlsx", SaveFormat.Xlsx, res); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment