Unplanned
Last Updated: 14 Aug 2024 06:43 by Patrick
Created by: Patrick
Comments: 0
Category: WordsProcessing
Type: Feature Request
1
Unplanned
Last Updated: 13 Aug 2024 11:33 by Kamil
ADMIN
Created by: Tanya
Comments: 5
Category: WordsProcessing
Type: Feature Request
18
Add support for horizontal lines in documents.

In DOCX, such lines are defined using the legacy VML definitions:
<w:pict w14:anchorId="324D5836">
  <v:rect id="_x0000_i1025" style="width:0;height:1.5pt" o:hralign="center" o:hrstd="t" o:hr="t" fillcolor="#a0a0a0" stroked="f"/>
</w:pict>
The definitions above and the <hr/> HTML tag are currently not supported and skipped on import, leading to missing horizontal lines in the document.
Unplanned
Last Updated: 08 Aug 2024 10:23 by ADMIN

Wrong exported paragraph indentation when the paragraph is in a table cell.

Workaround: Iterate table`s paragraphs and set the negative indentations to zero:

IEnumerable<Table> tables = this.document.EnumerateChildrenOfType<Table>();
foreach (Table table in tables)
{
	IEnumerable<Paragraph> paragraphs = table.EnumerateChildrenOfType<Paragraph>();
	foreach (Paragraph paragraph in paragraphs)
	{
		if (paragraph.Indentation.LeftIndent < 0)
		{
			paragraph.Indentation.LeftIndent = 0;
		}
	}
}

Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
ADMIN
Created by: Tanya
Comments: 0
Category: WordsProcessing
Type: Feature Request
9
Enable the customers to import SVG images and use them in their documents.
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)

Latest version 2024.2.426:

Old version 2022.3.906:

Use the following code: 

        static void Main(string[] args)
        {
            Console.WriteLine("Test from 2022.3.906 to 2024.2.426.");
            string html = @"<html>
                <head>
                    <style type=""text/css"">
                            h1 {
                               background-color: red;
                              }
                            #highlight1{
                                background-color: blue;
                             }
                           .highlight2{
                                background-color: yellow;
                             }
                     </style>
                </head>
                <body>
                   <h1>H1 - This Works </h1>
                   <h2 id=""highlight1"">H2 with id selector.  This works too.</h2>
                   <h3 class=""highlight2"">H3 with class selector.  This didn't work</h3>
                </body>
                </html>";

            Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider html_provider = new Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider();
            RadFlowDocument document = html_provider.Import(html);

            string html_output = "output.html";
            using (Stream output = File.Create(html_output))
            {

                html_provider.Export(document, output);
            }
            Process.Start(new ProcessStartInfo() { FileName = html_output, UseShellExecute = true });
        }
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
Currently, the text is exported but the strikethrough line is not drawn in the exported PDF.
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
DocFormatProvider: EndOfStreamException when importing document with specific image.
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)

In a WPF project targeting .NET 6, the following code snippet results in an error:

        public MainWindow()
        {
            InitializeComponent();

            Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider();
            RadFlowDocument document = provider.Import("<html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>");
        }
System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Text.Encoding.CodePages, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.'

Workaround: edit the .csproj file and include the required package reference:

	<ItemGroup>
		<PackageReference Include="Telerik.Windows.Documents.Flow" Version="2024.2.426" />
		<PackageReference Include="System.Text.Encoding.CodePages" Version="7.0.0" />
	</ItemGroup>
	<ItemGroup>
		<FunctionsPreservedDependencies Include="System.Text.Encoding.CodePages.dll" />
	</ItemGroup>

 

 
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)

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));
        }

    }
}

Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
ADMIN
Created by: Peshito
Comments: 5
Category: WordsProcessing
Type: Bug Report
4

List indent is not correct when exported to PDF. All indents start from the same position.

Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
The indentation of the paragraph is wrong and the list is not aligned as expected when the paragraph in the list has all its indentations locally while the list style defines different values.
 
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
When parsing the text content of the document, hidden characters are included in the place of the fields, making the content different than expected.
Completed
Last Updated: 02 Aug 2024 11:09 by ADMIN
Release 2024.3.802 (2024 Q3)
When a numbered list marker's font is exported to PDF, the resulting PDF file's list marker is not the proper font. The font of the text in the list entries themselves is correct.
Completed
Last Updated: 02 Aug 2024 11:08 by ADMIN
Release 2024.3.802 (2024 Q3)

When importing a RTF document with bullet lists and exporting the RadFlowDocument back to RTF format the following result is observed:

- the bullet's left offset is changed

- the bullets color is also changed

Workaround: use the Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider available in the Telerik.Windows.Documents.FormatProviders.Rtf.dll

Completed
Last Updated: 02 Aug 2024 11:08 by ADMIN
Release 2024.3.802 (2024 Q3)
After successful importing of DOCX with ordered list of TOC, try exporting it to PDF format. 
Completed
Last Updated: 02 Aug 2024 11:08 by ADMIN
Release 2024.3.802 (2024 Q3)
StartingPageNumber for PageField is not respected for sections other than the first one.
Unplanned
Last Updated: 01 Aug 2024 06:19 by George

XmlException is thrown when importing documents containing DAT files.

Workaround

1) Delete the files from the file structure before import:

RadFlowDocument flowDocument; using (Stream str = new FileStream("input.docx", FileMode.OpenOrCreate)) { MemoryStream ms = new MemoryStream(); str.CopyTo(ms); ms.Seek(0, SeekOrigin.Begin); using (ZipArchive archive = ZipArchive.Update(ms, null)) { var zipEntries = archive.Entries; // Skip glossary on importfor (int i = zipEntries.Count() - 1; i >= 0; i--) { var entry = zipEntries.ElementAt(i); string entryName = entry.FullName; if (Regex.IsMatch(entryName, @"\[trash\]")) { entry.Delete(); } } }

}

2) Re-save the document with Word before import. At least one change (that can then be reverted) is required. 
Unplanned
Last Updated: 30 Jul 2024 05:57 by Vladislav
Created by: Vladislav
Comments: 0
Category: WordsProcessing
Type: Feature Request
0
The DataBinding property tells the editor to show the linked content instead of the actual runs in the content control.
Unplanned
Last Updated: 23 Jul 2024 10:20 by RV
Created by: RV
Comments: 0
Category: WordsProcessing
Type: Feature Request
0
Unplanned
Last Updated: 12 Jul 2024 14:51 by Akesh Gupta

Restrict the TableCellProperties API of a style according to specification.