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.
Syncfusion Feedback

chinese text with 'Segoe UI' font family is not visible in PDF

Thread ID:

Created:

Updated:

Platform:

Replies:

117630 Nov 19,2014 12:29 PM UTC Nov 20,2014 12:22 PM UTC ASP.NET MVC (Classic) 1
loading
Tags: PDF
Nishant Garg
Asked On November 19, 2014 12:29 PM UTC

Hi,
I have created a word file using Syncfusion dll through .net code. and i am just displaying the below html text in the word document using paragraph.AppentHtml method.

<span style="font-family: 'Segoe UI'; direction: ltr; word-wrap: break-word; color: #000000; font-size: 10pt;" dir="ltr">你好</span>Help

In word document i am able to see all the text and all the style is applied in the text.

Now i have converted this word file into the PDF file using the below code. Now in the PDF file text  '你好' is not visible only Text 'Help' is visible. But if i select all text from the generated PDF file and paste it in the Notepad file then complete text '你好 Help' is copied. It means complete text is exist in the PDF but it is not visible. Now what i did I have removed the font family 'font-family: 'Segoe UI'' from the above html text. and i did again the same thing, now complete text is visible in the PDF file. it means issue is with the font family.And this font family is listed in font family list of the word document so it means it is exist in the system so we can not say that font family is not exist. Please help me on this what i need to do  because we can not remove the font family from the html text.


DocToPDFConverter converter = new DocToPDFConverter();

 

PdfDocument pdfDoc = converter.ConvertToPDF(wordDoc);

pdfDoc.Save("RFPQuoteSlip_" + DateTime.Now.ToString() + ".pdf", Response, HttpReadType.Open);


KarthikeyanC [Syncfusion]
Replied On November 20, 2014 12:22 PM UTC

Hi Nishant,

We have already logged this as an issue report in our database, the fix for this issue will be available in our upcoming Volume 4 release.

 

Regards,

Karthikeyan.C


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.

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

;