Facing issue while reading large Scanned PDF file in C#

HI
we purchased PRO PDF pack when we tested it with file size more than 100MB we got this response -

The page was not displayed because the request entity is too large.

For purchased PRO PDF, file size is 100 MB+ as per your documentation.

I tried with 57MB file but still getting the same response.

this issue is been escalated to support team but got no response.

here is the code I used for OCR process( work is in c#)

    MultipartFormDataContent form = new MultipartFormDataContent();
form.Add(new StringContent("<<API_KEY>>"), "apikey"); 
form.Add(new StringContent(getSelectedLanguage()), "language");

if (string.IsNullOrEmpty(ImagePath) == false)
{
	byte[] imageData = File.ReadAllBytes(ImagePath);
	form.Add(new ByteArrayContent(imageData, 0, imageData.Length), "image", "image.jpg");
}
else if (string.IsNullOrEmpty(PdfPath) == false)
{
	byte[] imageData = File.ReadAllBytes(PdfPath);
	form.Add(new ByteArrayContent(imageData, 0, imageData.Length), "PDF", "pdf.pdf");
}
HttpResponseMessage response = await httpClient.PostAsync("https://apix.ocr.space/parse/image", form); 
string strContent = await response.Content.ReadAsStringAsync();

Did you get a reply from support meanwhile? If not, please email us again and sorry for the issue.

To answer your question here, the answer you should have received is this:

  1. For large PDF OCR, please use

https://XXXXX.ocr.space/parse/image (XXXXX = see email from us)

This endpoint is especially tuned for uploading large PDF docs.

  1. For PDFs above 25 MB please use the URL method to submit them to the API, for more information see Free OCR API

Thanks for the reply, we got response from team and they sent new url as well but still getting same response. They asked for pdf file from us for reference testing.

As per there request we provided them large size pdf.

So now waiting for outcomes!

Regards

Hello. I’m also having the same issue but using the free account. I can’t seem to process files larger than 1MB. Can you kindly help?

@misslgd The free OCR plan has indeed a 1MB size limit. The PRO plans do not have this limit.