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.
Unfortunately, activation email could not send to your email. Please try again.

Word2PDF conversion freezes on a mal-formatted .doc file

Thread ID:

Created:

Updated:

Platform:

Replies:

127450 Nov 16,2016 08:21 AM Nov 17,2016 12:46 AM ASP.NET Web Forms 1
loading
Tags: DocIO
Sergey Zubkov
Asked On November 16, 2016 08:21 AM

Hi there.

I'm using DocIO packages (version 14.3.0.52), trying to convert a bunch of files with a console application:

            using (var document = new WordDocument(sourcePath))

            {

                document.ChartToImageConverter = new ChartToImageConverter();

                document.ChartToImageConverter.ScalingMode = Syncfusion.OfficeChart.ScalingMode.Normal;

                

                using (var converter = new DocToPDFConverter())

                {

                    converter.Settings = new DocToPDFConverterSettings

                    {

                        PdfConformanceLevel = PdfConformanceLevel.Pdf_A1B

                    };

                    //Convert word document into PDF document

                    using (var pdfDoc = converter.ConvertToPDF(document))

                    {

                        pdfDoc.EnableMemoryOptimization = false;

                        pdfDoc.Save(dstPath);

                        pdfDoc.Close();

                    }

                }

                document.Close();

            }


There's a mal-formatted Word file, and when the application reaches the file and tries to convert it to PDF (var pdfDoc = converter.ConvertToPDF(document)), it freezes forever, even though MS Word itself opens the file and saves it to PDF just fine.

Attachment: doc_d75d0f75.zip

Vijay Ramachandran [Syncfusion]
Replied On November 17, 2016 12:46 AM

Hi Sergey,

Thank you for using Syncfusion products.

A support incident to track the status of your query has been created under your account. Please log on to our support website to check for further updates,

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any concern.

Regards,
Vijay R
 


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.

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.

;