Open PDF file with PDfViewer, some Chinese characters are not displayed

2 Answers 41 Views
PDFViewer
Mingchang
Top achievements
Rank 1
Iron
Mingchang asked on 20 Aug 2021, 09:48 AM

This is what it looks like in the PDfViewer.Some characters are not shown.  '成'  Unable to display。

There are characters in the document.

 

Mingchang
Top achievements
Rank 1
Iron
commented on 20 Aug 2021, 09:49 AM

here is a PDF file.

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 23 Aug 2021, 09:39 AM

Hi Mingchang,

I was able to reproduce the observed issue. I have logged the issue on our feedback portal. You can track its progress, subscribe to status changes, and add your comment to it here. I have updated your Telerik points as well. 

Unfortunately due to the nature of the issue, I cannot suggest a workaround for it.  

Thank you for your understanding.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Kamran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 24 Aug 2021, 07:34 AM

Hi Mingchang,

Are you sure attached pdf document has valid standard. (RadPDF viewer has some limitation, where some pdf documents working fine with adobe reader but RadPDFViewer failed to render). I faced some issue with radPdfviewer before, which is fixed in current release.

As per your sample document it seems document is produced by Rad rich textbox. But I prepared another document having same content, and it is rendering fine. 

 

Mingchang
Top achievements
Rank 1
Iron
commented on 26 Aug 2021, 02:07 AM

My customer feedback is as follows: the document was edited by MSWord, and then opened through RadRichTextBox to modify and add some content.

After the modified document is converted to PDF, some text is not displayed. (The PDF reader in our software is the RadPdfViewer).

However, when we checked the problem, the PDF appeared normally when opened with other software, such as a browser, Adobe Reader, WPS, or Foxit Reader.

I have uploaded the MSWord document. You can open it with a RadRichTextBox and save it as a PDF file. Then open the PDF file with the RadPdfViewer to reproduce my feedback.

I found that if I save the document as PDF using MSWord directly, it will display normally in RadPdfView.
I uploaded the same document including two PDF files, respectively saved by MSWord and RadRichText。

 

 

Dimitar
Telerik team
commented on 26 Aug 2021, 12:08 PM

Hi Mingchang, 

Thanks for the additional inforamtion.

I have tested this with the WordsProcessing library and it works as expected. You can consider using it as a workaround and covert the docx file to PDF with it until the issue is resolved. 

I hope this helps. Should you have any other questions do not hesitate to ask.
Mingchang
Top achievements
Rank 1
Iron
commented on 27 Aug 2021, 02:10 AM

Hi Dimitar,

How to use WordsProcessing to export radrichtext to pdf?

I would be grateful if you could provide some sample code.

Mingchang
Top achievements
Rank 1
Iron
commented on 27 Aug 2021, 03:44 AM

Hi Dimitar,

I implemented WordsProcessing to export PDF files from RadRichTextBox, but I found that some of the text was wrapped.

It shows one line in my document, but two lines in the PDF

show in my docx document and pdf document: