Unplanned
Last Updated: 18 Aug 2017 09:38 by ADMIN

Page breaks can be exported and subsequently imported using the "page-break-before: always; " property set of some elements.

Introduce support for break-[before/after] and page-break-[before/after].

This can eventually be extended to support "page-break-before: avoid" to preserve the value of the Paragraph.KeepWithNextParagraph property.

Attached to this item is a sample project demonstrating how an HTML file is imported into a RadFlowDocument, the custom page break string are replaced with Break elements of type PageBreak and then the RadFlowDocument is exported to PDF and DOCX files.

Unplanned
Last Updated: 10 Jul 2024 05:38 by ADMIN
When table with table border without color set is created (the color is null), and the document is exported to PDF, ArgumentNullException is thrown. 

Workaround: Explicitly set a color where the color is null.
private void PdfExport()
{
	var tables = this.document.EnumerateChildrenOfType<Table>();

	foreach (var table in tables)
	{
		TableBorders coloredClone = this.CopyTableBorders_SetColorWhenOmitted(table);
		table.Borders = coloredClone;
		
		using (Stream output = new FileStream(fileName, FileMode.OpenOrCreate))
		{
			provider.Export(this.document, output);
		}
	}
}

private TableBorders CopyTableBorders_SetColorWhenOmitted(Table table)
{
	var leftBorder = new Border(table.Borders.Left.Thickness,
				  table.Borders.Left.Style,
				  table.Borders.Left.Color ?? new ThemableColor(Colors.Transparent),
				  table.Borders.Left.Shadow,
				  table.Borders.Left.Frame,
				  table.Borders.Left.Spacing);

	var rightBorder = new Border(table.Borders.Right.Thickness,
				  table.Borders.Right.Style,
				  table.Borders.Right.Color ?? new ThemableColor(Colors.Transparent),
				  table.Borders.Right.Shadow,
				  table.Borders.Right.Frame,
				  table.Borders.Right.Spacing);

	var bottomBorder = new Border(table.Borders.Bottom.Thickness,
				table.Borders.Bottom.Style,
				table.Borders.Bottom.Color ?? new ThemableColor(Colors.Transparent),
				table.Borders.Bottom.Shadow,
				table.Borders.Bottom.Frame,
				table.Borders.Bottom.Spacing);

	var topBorder = new Border(table.Borders.Top.Thickness,
				table.Borders.Top.Style,
				table.Borders.Top.Color ?? new ThemableColor(Colors.Transparent),
				table.Borders.Top.Shadow,
				table.Borders.Top.Frame,
				table.Borders.Top.Spacing);

	var insideHorizontalBorder = new Border(table.Borders.InsideHorizontal.Thickness,
			 table.Borders.InsideHorizontal.Style,
			 table.Borders.InsideHorizontal.Color ?? new ThemableColor(Colors.Transparent),
			 table.Borders.InsideHorizontal.Shadow,
			 table.Borders.InsideHorizontal.Frame,
			 table.Borders.InsideHorizontal.Spacing);

	var insideVerticalBorder = new Border(table.Borders.InsideVertical.Thickness,
			table.Borders.InsideVertical.Style,
			table.Borders.InsideVertical.Color ?? new ThemableColor(Colors.Transparent),
			table.Borders.InsideVertical.Shadow,
			table.Borders.InsideVertical.Frame,
			table.Borders.InsideVertical.Spacing);

	var tableBorders = new TableBorders(leftBorder, topBorder, rightBorder, bottomBorder, insideHorizontalBorder, insideVerticalBorder);

	return tableBorders;
}
Completed
Last Updated: 15 Feb 2018 16:53 by ADMIN
The issue is observed with tables that have a specific width (in inches or percents) but whose columns do not have width specified. MS Word renders such tables expanded to their full width. For tables with 100% width, they have to expand to the entire width of the page. The same behavior is expected in the PDF export.

As a common side effect, when specific text alignment (e.g. center or right) is applied to a paragraph within a table cell, and the table is with specified width, but the column is auto-sized (without set width), then the text alignment seems as not respected. Actually the problem is that the column table is shrunk to the text width.

Workaround: this may be used before exporting the RadFlowDocument instance to PDF:

foreach (Table table in document.EnumerateChildrenOfType<Table>())
{
    table.LayoutType = TableLayoutType.FixedWidth;
}


Workaround 2:

Set specific width to the auto-sized columns (to any of the cells in the columns):

cell.PreferredWidth = new Telerik.Windows.Documents.Flow.Model.Styles.TableWidthUnit(500);

Available in R1 2018 SP2 release version.
Completed
Last Updated: 16 Aug 2022 05:04 by ADMIN
Release R3 2022
ADMIN
Created by: Mihail
Comments: 1
Category: WordsProcessing
Type: Feature Request
5
Office Open XML defines a mechanism for the storage of content which is not defined by this Office Open XML Standard, for example extensions developed by future software applications.

The stored data could be an image.
Unplanned
Last Updated: 27 Apr 2017 07:03 by ADMIN
The API should allow the client to navigate to an empty block container and manipulate it.

The block containers are Section, TableCell, Header, Footer, Comment.

The API should also include manipulation methods for a table like:

Add a row to a table.
Add a cell to a row.
Add a table to an empty cell.
Add a paragraph to an empty cell.
Add a run to an empty cell.
add a text to an empty cell.
Move to a next/previous cell.
Move to a next/previous row.

The API should use the currently applied editor formatting when creating the specified document elements.
Completed
Last Updated: 27 Mar 2020 15:17 by ADMIN
Release R2 2020
The current implementation uses System.Windows.Media.Imaging.BitmapImage class in order to take the image pixels for the PDF export. However, BitmapImage class throws NotSupportedException when being initialized with a WMF or EMF image.

WORKAROUND: WMF and EMF images may be converted to PNG images before the PDF export. The following code snippet shows how to convert all inline WMF image to PNG images by using System.Drawing.Image class:

private static void ConvertInlineWmfImagesToPng(RadFlowDocument document)
{
    foreach (ImageInline image in document.EnumerateChildrenOfType<ImageInline>())
    {
        if (image.Image.ImageSource.Extension.Equals("wmf", StringComparison.InvariantCultureIgnoreCase))
        {
            using (MemoryStream wmfImageStream = new MemoryStream(image.Image.ImageSource.Data))
            {
                using (MemoryStream pngImageStream = new MemoryStream())
                {
                    var imageDrawing = System.Drawing.Image.FromStream(wmfImageStream);
                    imageDrawing.Save(pngImageStream, ImageFormat.Png);
                    byte[] pngBytes = pngImageStream.ToArray();
 
                    image.Image.ImageSource = new ImageSource(pngBytes, "png");
                }
            }
        }
    }
}
Completed
Last Updated: 20 Nov 2020 09:37 by ADMIN
Release R1 2021
Add support for setting and exporting document metadata, like Title, Author and similar.
Unplanned
Last Updated: 27 Jun 2019 11:59 by ADMIN
ADMIN
Created by: Georgi
Comments: 2
Category: WordsProcessing
Type: Feature Request
5
Implement support for pictures with references represented with the r:link attribute in the schema.
Completed
Last Updated: 17 May 2023 10:55 by ADMIN
Release R2 2023
Provide support for setting color values using rgb() function.

Example: background-color: rgb(197,93,161);
Unplanned
Last Updated: 31 Mar 2020 16:43 by ADMIN
When the indentation of a paragraph, which is located in a list, is locally set, its indentation is not property exported to RTF.
Unplanned
Last Updated: 06 May 2020 13:50 by ADMIN
Created by: Brett
Comments: 0
Category: WordsProcessing
Type: Feature Request
5
This element is used to collect shapes and groups so they can be positioned and transformed as a single unit. A group contains group, shapetype, shape, pre-defined shape - arc, curve, image, line, oval, polyline, rect, roundrect - and lock elements.

When the object is serialized out as XML, its qualified name is v:group.
Unplanned
Last Updated: 10 Aug 2021 04:34 by ADMIN
Currently, the WordsProcessing library does not support the import/export of MSG (mail message) files.
Unplanned
Last Updated: 23 Sep 2020 13:23 by ADMIN
Created by: César
Comments: 0
Category: WordsProcessing
Type: Feature Request
5

Such objects are defined as oleObject elements in the XML:

<w:object w:dxaOrig="3795" w:dyaOrig="3555">
	<v:shape id="_x0000_i1026" type="#_x0000_t75" style="width:32.85pt;height:30.55pt" o:ole="" fillcolor="window">
	  <v:imagedata r:id="rId9" o:title=""/>
	</v:shape>
	<o:OLEObject Type="Embed" ProgID="PBrush" ShapeID="_x0000_i1026" DrawAspect="Content" ObjectID="_1647182330" r:id="rId10"/>
</w:object>

Currently, they are skipped on import.

 

Unplanned
Last Updated: 01 Nov 2021 08:11 by ADMIN
Currently, when exporting documents containing RTL (right-to-left) text, the flow direction is not respected and it is set to LTR.
Unplanned
Last Updated: 25 Feb 2021 16:11 by ADMIN

Add full support of the font-weight CSS property. The defined values are: normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900. Currently bold and normal are supported.

Unplanned
Last Updated: 05 May 2021 07:18 by ADMIN
Created by: SAI RADHA MANI
Comments: 0
Category: WordsProcessing
Type: Feature Request
5
The SVG element allows drawing paths, boxes, circles, text, and graphic images in HTML document.
Unplanned
Last Updated: 18 Jul 2023 13:13 by ADMIN

Is there a way to prevent font embedding in the RadFlow methodology or is utilizing RadFixed the only way to have a reasonably sized PDF document?

Completed
Last Updated: 22 Jan 2020 11:54 by ADMIN
Release LIB 2020.1.127 (01/27/2020)
ADMIN
Created by: Deyan
Comments: 0
Category: WordsProcessing
Type: Feature Request
4
Currently Run.Shading is not exported to PDF.

Note: This scenario is common when converting HTML to PDF, as Run.Shading is set when construct like <span style="background-color:#ffcc00;"> is used.

Workaround: Iterate all the Runs in the already imported HTML document and set their HighlightColor to Shading.BackgroundColor.LocalValue. Check this code snippet:
foreach (Run run in document.EnumerateChildrenOfType<Run>())
{
	if (!run.Properties.HighlightColor.HasLocalValue)
	{
		run.HighlightColor = run.Shading.BackgroundColor.LocalValue;
	}
}


Completed
Last Updated: 08 May 2023 14:22 by ADMIN
Release R2 2023
When table row is empty, it's exported to PDF with incorrect height - depending on the type of height set with 0 or with the height of an empty paragraph.
Completed
Last Updated: 01 Sep 2021 12:10 by ADMIN
Release R2 2021
ADMIN
Created by: Tanya
Comments: 0
Category: WordsProcessing
Type: Feature Request
4
Enable the customers to work with .dot files.