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. Image for the cookie policy date

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

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.

 


4 Replies

GM Geetha M Syncfusion Team June 14, 2013 11:41 AM UTC

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


AD Administrator Syncfusion Team June 14, 2013 02:14 PM UTC

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


AD Administrator Syncfusion Team June 18, 2013 06:20 AM UTC

Hi,

Is there an update on this issue?

 

George J.



PM Prasanth M B Syncfusion Team June 18, 2013 06:42 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon