Unplanned
Last Updated: 31 Oct 2018 08:07 by ADMIN
ADMIN
Telerik Admin
Created on: 01 Feb 2012 18:48
Category: RichTextBox
Type: Bug Report
0
RichTextBox: Italic bullet sign of paragraph in list is not exported properly to PDF
Italic bullet sign of bulleted paragraph (with last italic characters) is exported like an equal sign with a line through it.

Workaround: Make all italic bullets non-italic. The following code achieves that:

RadDocument document = this.radRichTextBox.Document;

foreach (var paragraph in document.EnumerateChildrenOfType<Paragraph>())
{
    if (paragraph.ListId != Paragraph.ListIdProperty.DefaultValue)
    {
        DocumentList documentList = document.ListManager.GetDocumentListById(paragraph.ListId);
        int levelIndex = paragraph.ListLevel != Paragraph.ListLevelProperty.DefaultValue ? paragraph.ListLevel : 0;

        if (documentList.ActualStyle.Levels[levelIndex].NumberingFormat == ListNumberingFormat.Bullet)
        {
            documentList.ActualStyle.Levels[levelIndex].SpanProperties.FontStyle = FontStyles.Normal;
        }
    }
}

this.radRichTextBox.UpdateEditorLayout();
0 comments