Exception when there are merge fields in the header/footer and one performs mail merge:
Unable to cast object of type 'Telerik.Windows.Documents.Flow.Model.Header' to type 'Telerik.Windows.Documents.Flow.Model.BlockBase
Find and Replace document elements with special characters.
When inserting a section between two paragraphs the section parent is not correct.
Example:
Paragraph paragraph1 = editor.InsertParagraph(); Paragraph paragraph2 = editor.InsertParagraph(); editor.InsertSection(); Paragraph paragraph3 = editor.InsertParagraph();
Expected:
paragraph1.Parent == paragraph2.Parent
paragraph2.Parent != paragraph3.Parent
Actual:
paragraph1.Parent != paragraph2.Parent
paragraph2.Parent == paragraph3.Parent
Introduce support for min-height. Currently, this property is skipped.
As a possible workaround, the height property of the table row could be applied.If a document has runs with font size larger than the one set in the style of the paragraphs and this document is exported to HTML, the resulting paragraphs overlap.
The hanging indent of the paragraph affects the rendering of content with tabs. However, the indent is not respected while generating the PDF, leading to disordered content.
Workaround: Insert a tab stop with the position set to the value for hanging indent:
foreach (var paragraph in this.flowDocument.EnumerateChildrenOfType<Paragraph>())
{
if (paragraph.Properties.HangingIndent.HasLocalValue)
{
Run run = paragraph.EnumerateChildrenOfType<Run>().Where(r => r.Text == "\t").FirstOrDefault();
if (run != null)
{
paragraph.TabStops = paragraph.TabStops.Insert(new Telerik.Windows.Documents.Flow.Model.Styles.TabStop(paragraph.Properties.HangingIndent.LocalValue.Value));
}
}
}
Exporting RTF document to HTML when there is a multilevel numbered list, strips the numbers and leaves only the main number visible (e.g. 2.1 becomes 1). Also, the text overlaps the numbering.
Workaround: Use numbers with letters instead of numbers only. (e.g. 1 a b c, 2 a b c).