This is a migrated thread and some comments may be shown as answers.

Pdf not showing text formating

2 Answers 75 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Manoela
Top achievements
Rank 1
Manoela asked on 18 Jan 2018, 09:42 AM

Hello,

I am trying to export docx as pdf but before pdf export I am inserting some html. The html is converted to RadFlowDocument and then inserted by RadFlowDocumentEditor. I am using InsertDocumentOptions which are set to 

      ConflictingStylesResolutionMode = ConflictingStylesResolutionMode.UseTargetStyle,
      InsertLastParagraphMarker = false

When I export the document to docx the html part has formating but when I export as pdf there is no formating.

The attached files are examples of the problem. The font is different and the part that was supposed to be bold is not.

Can you help to solve the problem? Is that a bug or it is not supported?

Best Regards

2 Answers, 1 is accepted

Sort by
0
Manoela
Top achievements
Rank 1
answered on 18 Jan 2018, 12:34 PM

I was importing the html from Kendo.Editor. When I inspected an element I saw

   font-family:'Times New Roman', Times, serif;

The single quatation was the reason for braking the document's formating. Double quatation fixed the problem but I believe that single quatation should work as well.

0
Boby
Telerik team
answered on 19 Jan 2018, 11:26 AM
Hi Manoela,

I believe this is already fixed in the latest version (2018 R1) of RadWordsProcessing, listed here as "HTML import of font-family enclosed in quotes is incorrect".

Let us know if the problem is different.

Regards,
Boby
Progress Telerik

Tags
PdfProcessing
Asked by
Manoela
Top achievements
Rank 1
Answers by
Manoela
Top achievements
Rank 1
Boby
Telerik team
Share this question
or