aspose-ocr / Aspose.OCR-for-.NET

Aspose.OCR for .NET examples, plugins and showcase projects
https://products.aspose.com/ocr/net
MIT License
43 stars 34 forks source link

Aspose.OCR reads only 10 pages #34

Open MathavanN opened 2 years ago

MathavanN commented 2 years ago

Hi, I am working on a POC using a temporary AsposeOCR license. When I try to read the sample file provided in this repo (multi_page_1.pdf), it reads only 10 Pages.

Is it because of the temporary license?

somk commented 2 years ago

已经收到。

asadalikhan90 commented 2 years ago

@MathavanN

At the moment, the functionality to recognize multi-page PDF is limited to the 10 pages only. One of the reasons is to make the processing light-weight. If this restriction is removed, API will definitely require more time and memory to process all pages of the supplied PDF and they may be in 1000s. Therefore, you can simply specify a range in the below code to recognize the pages. In case you still notice any issue, please create a topic in our official support forum which is the right place to discuss such things.

List<OCR.RecognitionResult> results = api.RecognizePdf(fullPath, new OCR.DocumentRecognitionSettings { StartPage = 10, PagesNumber = 10 });