We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

OutOfMemory exception during WordToPdf in combination with embedded word documents

Thread ID:

Created:

Updated:

Platform:

Replies:

141177 Nov 28,2018 12:49 PM UTC Dec 4,2018 08:41 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: DocIO
Bart
Asked On November 28, 2018 12:49 PM UTC

Using the latest verison of syncfusion, when trying to convert a word document to pdf, an OutOfMemoryException is thrown.
Is this type of document supported ?
Note : the exception only happens when the application is deployed to an Azure environment (and seems to run fine on our local machine)
System.OutOfMemoryException: Out of memory.
   at System.Drawing.Image.Clone()
   at Syncfusion.Pdf.Graphics.PdfMetafile.Save()
   at Syncfusion.Pdf.Graphics.PdfGraphics.DrawImage(PdfImage image, Single x, Single y, Single width, Single height)
   at Syncfusion.Pdf.Graphics.PdfGraphics.DrawImage(PdfImage image, RectangleF rectangle)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.DrawInlinePictureShape(WPicture picture, RectangleF bounds, SizeF size, Image image)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.DrawPicture(WPicture picture, LayoutedWidget ltwidget)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(IWidget widget, LayoutedWidget layoutedWidget)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(Page page)
   at Syncfusion.DocToPDFConverter.DocToPDFConverter.DrawDirectWordToPDF(DocumentLayouter layouter)

Attachment: syncfusionembeddedword_1d5f92ab.zip

Prakash Kumar D [Syncfusion]
Replied On December 4, 2018 08:41 AM UTC

Hi Bart, 
 
Thank you for contacting Syncfusion support. 
 
On further analyzing the given Word document, we have found that embedded Word document is used as EMF image. Currently, the metafile images (*.wmf, *.emf) in Word document are not supported while converting to PDF in Azure environment which is already a known limitation. We have considered this exception problem at our end and will provide fix to skip the exception to convert the given Word document as PDF. This fix will be included in our 2018 Volume 4 SP1 release which is expected to available at the end of January 2018 tentatively. 
 
Please refer the below KB to know more about known limitation Azure environment while converting Word document as PDF: 
 
Regards, 
Prakash Kumar 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;