Error while opening document from bytes 'bad allocation'

Processing large PDF document can be very crucial for some businesses.

When using IronPDF to load existing PDF file, IronPDF allocation a part of memory to store that loaded PDF. Application running on 32-bit has memory limit of 2 GB for a process running. When loading 500+MB PDF this limitation will a 'bad allocation' exception to be thrown.

Exception message:

IronPdf.Exceptions.IronPdfNativeException: 'Error while opening document from bytes: 'bad allocation'.


To solve this, please set the application to run on 64-bit.