I am using below source code to save 60MB pdf file to MemoryStream, and I am getting out of memory exception. Is there any limitation to the PDF file size on Aspose. Is there any option from Aspose to get size of the PDF file instead of using System.IO.FileInfo(path).Length.
byte[] bytes = null;
MemoryStream docStream = new MemoryStream();
using (Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(fullFilePath))
{
pdfDocument.FitWindow = true;
intPageCount = pdfDocument.Pages.Count;
pdfDocument.Save(docStream); //Memory Exception on this line of code
bytes = docStream.ToArray();
docStream.Flush();
docStream.Close();
}