Having problems with Aspose 6.2.0 when converting Word document into PDF

Hi Alex,
Please find attached document I got outofmemory error.

_asposeDocument.SaveToPdf(0, _asposeDocument.PageCount, stream, null);
2009 - 12 - 10 15: 31: 02, 358[8604] DEBUG Dcar.Core.SignService[SDG: 1] <(null)> -END: Process RenderAsPdf Request
2009-12-10 15:31:32,782 [8604] DEBUG Dcar.Web.ServiceRequestHandler [SDG:1] <(null)> - Exception while processing service request: 
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at ?.?.?(BinaryReader ?, Int32 ?, Int32 ?)
at ?.?.?()
at ?.?.?(? ?)
at ?.?.DoPlay()
at ?.?.?(? ?, ? ?)
at ?.?.?(? ?, SizeF ?)
at ?.?.?(Byte[] ?, SizeF ?)
at ?.?.?(? ?)
at ?.?.VisitImage(? image)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at ?.?.Accept(? visitor)
at Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, Stream stream, PdfOptions options)
at Dcar.Core.Signing.WordConfirm.Save(Stream stream, ConfirmSaveFormat format)
at Dcar.Web.HttpRenderAsPdfServiceResultsAdapter.ResponseServiceResult(ServiceResults results, HttpContext httpContext)
at Dcar.Web.HttpServiceResultsAdapter.Execute(ServiceResults results, Object execution)
at Dcar.Web.ServiceRequestHandler.ProcessRequest(HttpContext context)
2009-12-10 15:31:33,079 [8604] DEBUG Dcar.Web.ServiceRequestHandler [SDG:1] <(null)> - ** BEGIN: Service Request XML that Cause the Exception:
2009 - 12 - 10 15: 31: 33, 079[8604] DEBUG Dcar.Web.ServiceRequestHandler[SDG: 1] <(null)> - <dcarServiceRequest

Thanks,
Christina

This message was posted using Email2Forum by alexey.noskov.

Hi

Thanks for your request. I cannot reproduce the problem on my side. I use the latest version of Aspose.Words for testing.
So, please try using the latest version of Aspose.Words, you can download it from here:
https://releases.aspose.com/words/net
Best regards.

Hi Alex,
I am using the latest version Aspose.words 8.0.0, we have this exception when coverting large doc files with pictures, did you use the same method call when you testing?
Thanks,
Christina

Hi Christina,

Thank you for additional information. Yes, I used exactly the same code and your test document for testing. Here is my test code:

Document doc = new Document(@"Test001\07ML05789_assign.doc");
MemoryStream docStream = new MemoryStream();
doc.SaveToPdf(0, doc.PageCount, docStream, null);

Best regards,