Completed
Last Updated: 21 Mar 2024 05:53 by ADMIN
Release 2024.1.305 (2024 Q1)

Handle import of documents with self-referring styles.

As a workaround, you can go through the RTF document structure of a single file and utilize Regex to resolve the self-referring styles like this:

string rtf = File.ReadAllText("inputFile.rtf");
rtf = FixSelfReferringStyles(rtf);

Telerik.Windows.Documents.Flow.FormatProviders.Rtf.RtfFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Rtf.RtfFormatProvider(); 

 var document = provider.Import(rtf);

...

private static string FixSelfReferringStyles(string rtf)
{
    string regexString = @"{\\s([0-9]+)[^}]*\\slink([0-9]+)";

    var matches = Regex.Matches(rtf, regexString);
    foreach (Match match in matches)
    {
        if (match.Groups[1].Value == match.Groups[2].Value)
        {
            var oldValue = match.Groups[0].Value;
            var newValue = oldValue.Replace(@" \slink" + match.Groups[1].Value, string.Empty);
            rtf = rtf.Replace(oldValue, newValue);
        }
    }

    return rtf;
}

 

Unplanned
Last Updated: 02 Jan 2024 07:47 by Muhammad

Workaround:

Setting the IsDirty property of the FiledInfo object to "true" in order to recalculate layout and update the fields when the document is opened in a viewer:
var fieldInfo = editor.InsertField("TOC");
fieldInfo.UpdateField();
fieldInfo.IsDirty = true;
Unplanned
Last Updated: 27 Dec 2023 07:06 by Sashi
When importing a document containing a Picture SDT with TextProperties an exception is thrown: StructuredDocumentTags.Builders.SdtBuilderFailureException: 'This content control type cannot be inserted around a selected image.'
Unplanned
Last Updated: 22 Dec 2023 09:35 by Avrohom Yisroel
Unplanned
Last Updated: 19 Dec 2023 16:04 by Anthony

Merging (with RadFlowDocumentEditor's InsertDocument method) documents containing lists sometimes doesn't properly resolve the ListId properties.

Workaround: Removing the list with bullets resolves the issue as there is only one ListId to pick from:

document.Lists.Remove(1); 

 

Unplanned
Last Updated: 15 Dec 2023 17:53 by Anthony
An additional blank page is added when a page break is followed by a paragraph with enabled PageBreakBefore.
Unplanned
Last Updated: 08 Dec 2023 15:02 by Prabhu
When there is underline or strikethrough set to a bullet/number in docx, when this document is imported and then exported to HTML the entire paragraph is with underline/strikethrough.
Unplanned
Last Updated: 08 Dec 2023 14:51 by Prabhu

When there is a document (e.g. docx) with hanging indent in a list and this document is imported and then exported to HTML, the text overlaps the bullet as shown in the screenshot.

Completed
Last Updated: 11 Jan 2024 08:24 by ADMIN
Release 2024 Q1
PdfFormatProvider: Inline image surrounded by bookmarks is incorrectly measured when the document contains numbering fields.
Unplanned
Last Updated: 16 Nov 2023 13:14 by Luigi

Importing a document containing a hyperlink (<a>) tag without content extends it over the trailing elements.

For example, importing this HTML:

<a></a>
<p>First paragraph</p>
<p>Second paragraph</p>
<p>Third paragraph</p>

Generates:

Instead of this:

Unplanned
Last Updated: 08 Nov 2023 10:25 by Mervin

Indent of BodyTextIndent style applied to a paragraph is not respected on export.

Workaround: Remove the applied style.

var p = run.Paragraph;
p.Properties.StyleId = string.Empty;

 

Completed
Last Updated: 12 Nov 2025 14:56 by ADMIN
Release 2025.3.1007

List's top and bottom margins are not correctly exported.

Workaround: Apply TelerikNormal style to the 'ol' element.

Unplanned
Last Updated: 08 Nov 2023 09:33 by Mervin
List symbols (bullets and numbers) are exported at the position where the list content should be.
Unplanned
Last Updated: 01 Nov 2023 15:29 by Luca Galbiati
Created by: Luca Galbiati
Comments: 0
Category: WordsProcessing
Type: Bug Report
1
The srcRect property of image is lost on Import/Export.
Unplanned
Last Updated: 01 Nov 2023 15:26 by Luca Galbiati
IsMultiline (Allow carriage returns - multiple paragraphs) property of TextControlElement is not imported/exported correctly.
Unplanned
Last Updated: 01 Nov 2023 15:21 by Luca Galbiati
Created by: Luca Galbiati
Comments: 0
Category: WordsProcessing
Type: Feature Request
0
Introduce support for Paragraph Spacing Style Sets.
Unplanned
Last Updated: 30 Oct 2023 07:20 by Simon

Import/Export of specific documents sets style background color to black.

Workaround: do the following conversion of the document with the Document Processing libraries: originalRtf -> exportedDocx, exportedDocx -> finalRtf. After that processing, the finalRTF file will no longer reproduce the issue when exported.

Unplanned
Last Updated: 23 Oct 2023 06:38 by Andreas
Preserve Footnotes/Endnotes information.
Unplanned
Last Updated: 23 Oct 2023 06:36 by Andreas
Created by: Andreas
Comments: 0
Category: WordsProcessing
Type: Feature Request
1
Preserve Bookmarks information.
Unplanned
Last Updated: 23 Oct 2023 06:31 by Andreas
Created by: Andreas
Comments: 0
Category: WordsProcessing
Type: Feature Request
1
Preserve Fields (Merge Fields, Cross References) information.