According to the OOXML specification the shading color can be defined only in RRGGBB hex color, but MS Word also supports colors defined with their names - e.g. "Red".
ArgumentException with 'Invalid value' message is thrown when importing invalid font sizes from docx, e.g. <w:sz></w:sz> (the 'val' attribute should be specified according to the OOXML specification). Instead, such documents could be imported as the w:sz is not specified, similar to the behavior of MS Word.
When the indentation of a paragraph is coming from a list, the RTF format provider applies them to the paragraph as local properties.
This affects all conversions of documents containing lists from RTF to HTML.
Workaround: After importing the document check if the indentation of the paragraph is the same as the one coming from the list. Here is example on how this could be done:
RtfFormatProvider provider = new RtfFormatProvider();
RadFlowDocument document = provider.Import(stream);
foreach (Paragraph paragraph in document.EnumerateChildrenOfType<Paragraph>())
{
List list = this.document.Lists.GetList(paragraph.ListId);
if (paragraph.Indentation.HangingIndent == list.Levels[0].ParagraphProperties.HangingIndent.LocalValue)
{
paragraph.Indentation.HangingIndent = Paragraph.HangingIndentPropertyDefinition.DefaultValue.Value;
}
if (paragraph.Indentation.FirstLineIndent == list.Levels[0].ParagraphProperties.FirstLineIndent.LocalValue)
{
paragraph.Indentation.FirstLineIndent = Paragraph.FirstLineIndentPropertyDefinition.DefaultValue.Value;
}
}
Enable the customers to work with .dot files.
Enable the customers to work with .doc files.
The API should allow you to perform a text-based search and return the parent element(s) of the result(s) or directly the found element(s).
Exception trying to import HTML that contains width with an empty value. For example:
<table width="">