Hi team,
we’re getting an “out of memory” exception when saving an Excel workbook as PDF (to HttpContext.Current.Response or to local filesystem makes no difference).
If the sheet contains some small images (9 images with 140 kb alltogether) it generates a 730 kb PDF with no problem. With one bigger image (about 5 mb, 5.x mb alltogether), the generated PDF grows to 48 (!!!) mb and still works. With an 9 mb image (9.x mb alltogether) the PDF grows to more than 60 mb and we’re getting the “out of memory” exception. Why is the PDF growing that much???
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.CalculateFormula = true;
workbook.Save(HttpContext.Current.Response, _destinationFileName, ContentDisposition.Attachment, pdfSaveOptions);
The OS is Windows 7, 32 bit; Aspose.Cells 7.5.2.0.
What can we do?
Thank you!
Hi,
Images and template attached. Thank you.
Hi,
Console app attached. Try running as is - the save command hangs. When changing the first image (9 mb) to a smaller one (some kb), it works. Do also have a look at the memory consumption (task manager hardcopy).
Thank you.
Hi,
are there any updates on this issue? It blocks our generating of PDFs.
Thank you.
Hi,
Hi,
Thanks for your using Aspose.Cells.
Please download and try the latest fix: Aspose.Cells for .NET v8.1.2.2 and let us know your feedback.
The issues you have found earlier (filed as CELLSNET-41952) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as CELLSNET-41952) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(1)
Hi,
I don’t know why but we are having this problem again, this time with even much smaller images (< 350 kb) - using smaller images was our workaround since my initial post. A 500 kb Excel file grows to a 2500 kb pdf, an 2 mb Excel file grows to a 20(!) mb pdf. That happens only sometimes, but in about 75 % of all cases.
I tried to use the version in which you fixed the problem but run into a licence out of date issue. Our customer cannot buy another expensive prolonging for just fixing this issue. What can we do?
Regards
Ingo
Hi,
Hi,
with v8.1.2.2 (we are using 7.5.2.0) the file size went down from about 20 mb to 3.9 mb which is not bad. But exporting the xlsx as pdf from within Excel produces a pdf with 600 kb only!
Anyway - some thousand $ for a fix is no option for us. What do we do if the next issue comes up and the licence period is over again?! Btw - we have another confirmed issue pending since 1,5 years (see 466948 in reply to 466944) - no solution yet! It’s really not much we need - inserting images, image transparency (the other still opened issue) and exporting as pdf, but we feel quite left alone now.
I understand very well that you can’t fix issues in older versions but forcing customers to fully pay an update which is not needed - except of the fix(es) - is a really bad business practice. I am forced to evaluate DevExpress now - we are getting the full all in one package (including all controls and document generation for all platforms) for the same price like your fix update …
Regards
Ingo
Hi Ingo Bleile,