Proxy Error : System Expection

When I trying to run aspose OCR of PDF files , I am getting system exception error

@Arsya

Would you please share your sample file and the sample code snippet so that we can try to replicate the issue in our environment and address it accordingly?

import aspose.ocr as ocr

pdf_text=“”
api= ocr.AsposeOcr()
pdf_input = ocr.OcrInput(ocr.InputType.PDF)
pdf_input.add(sample_file_path)
result = api.recognize(pdf_input)
for i in range(len(result)):
pdf_text = pdf_text + result[i]. recognition_text
text.append(pdf_text)

Actually we are iterating the process for multiple scanned files in pdf format and we tried 24.3 and 24.1 versions. Till two or three files it’s running fine ,after that the proxy error: system exception comes up.

@Arsya

The information is not enough to carry out an investigation. Is it possible that you could please share below information as well:

  • sample PDF document being used in the code
  • environment details like OS Name, application type, JDK version, etc

Sample pdf can’t be shared for some reasons. The pdf contains scanned pages containing mixture of handwritten and typed words.

OS : Windows 11
Application : VS code

@Arsya

Unfortunately, the Aspose.OCR API does not support such PDFs that have mixed content i.e. Text and Images. The error may be occurring due to this reason. However, if you can please share a sample PDF file for our reference, we assure you that we will use it for further investigation and will remove it from our system after analysis.