We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting out of memory exception in Aspose.pdf

Hi,

I am using Aspose.pdf ( vesrsion :10.4.0.0) and getting memory out of exception error.

following is my code snippet:

using (Document pdfReportDocument = new Document())
{
page = pdfReportDocument.Pages.Add();
page = createPdfPage(reportPage, page, columnsWidth);
reportPage.Name = reportPage.Name.Replace(":", “”);
string filedateappendervalue = DateTime.Now.ToString(FILETIMESTAMPFORMAT);

string fileName = string.Format("{0}{1}{2}.pdf", reportName, filedateappendervalue, reportPage.Name.Replace(":", " “).Replace(”/", " “).Replace(@”", " “).Replace(”?", " “).Replace(”*", " “).Replace(”[", " “).Replace(”]", " "));

reportInfo = new ReportInfo();

reportInfo.FileName = fileName;
pdfReportDocument.Save(reportInfo.FileStream);

}

Any help would be appreciated.

Hi Ram,


Thanks for contacting support. I have tried executing the code snippet but I am afraid createPdfPage(…) is not defined. Can you please share a sample project, so that we can test the scenario in our environment. We are sorry for this inconvenience.