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.

Symbol characters are missing after conversion from .docx to .pdf

Thread ID:

Created:

Updated:

Platform:

Replies:

109456 Jun 14,2013 02:33 AM Jun 18,2013 02:42 AM ASP.NET MVC (Classic) 4
loading
Tags: DocIO
Administrator [Syncfusion]
Asked On June 14, 2013 02:33 AM

Hi,

I have several .docx documents/reports that need to be converted to .pdf files. Converting works as layout & text are converted from .docx to .pdf.

Although, inside the docuements, there are symbol characters (checked/unchecked symbols, Unicode xF0FD (Checked) & Unicode xF0A8 (Not Checked)), using Windings font. There characters do not exit on the converted documents - their positions appear blank.

I am using the following code to convert documents:

            try
            {
                FileInfo fi = new FileInfo(OriginalFilename);
                Stream docFile = new FileStream(OriginalFilename, FileMode.Open);

                WordDocument docWord = null;
                switch (fi.Extension)
                {
                    case ".doc":
                        docWord = new WordDocument(docFile, FormatType.Doc);
                        break;

                    case ".docx":
                        docWord = new WordDocument(docFile, FormatType.Docx);
                        break;

                    default:
                        log.Warn(string.Format("Invalid extension: {0}", fi.Extension));
                        if (!acceptedExtensions.Contains(fi.Extension))
                            throw new ArgumentOutOfRangeException(fi.Extension);

                        break;
                }

                using (DocToPDFConverter converter = new DocToPDFConverter())
                {
                    PdfDocument docPdf = converter.ConvertToPDF(docWord);
                    docPdf.Save(ConvertedFilename);
                    docPdf.Close(true);
                    docPdf = null;
                }

                docWord.Close();
                docWord = null;

                docFile.Close();
                docFile = null;

                return true;
            }
            catch (Exception ex)
            {
                log.Error(ex.ToString());
                return false;
            }

 

Any pointers on overcoming this problem?

 

 

Thanks,

George J.

 


Geetha M [Syncfusion]
Replied On June 14, 2013 07:41 AM

Hi George,

Thank you for your interest in Syncfusion products.

Could you please send us the .docx file so that we can check the conversion here? Also, please let us know the Essential Studio version used for the conversion.

Regards
Geetha

Administrator [Syncfusion]
Replied On June 14, 2013 10:14 AM

Hi,

In the archive attached, there are the original .docx file, as well as the .pdf file I get from the conversion.

On Syncfusion Dashboard, I get: Essential Studio Version: 11.2.0.25.

 

George J.



report_demo_2930b23b.rar

Administrator [Syncfusion]
Replied On June 18, 2013 02:20 AM

Hi,

Is there an update on this issue?

 

George J.


Prasanth M B [Syncfusion]
Replied On June 18, 2013 02:42 AM

Hi George,

Thank you for your update.

We are able to reproduce the Symbol character preservation issue, however to access this, we request you to create your customer account in Direct Trac and open a new incident so that our support engineer will assist you accordingly.

Our Direct Trac support system can be accessed from the following link:
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any questions.

Thanks,
Prasanth

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.

;