Special chars (åäö) with PdfFormatProvider wont work.
Project submitted!
public void SpecialCharsTest()
{
RadFlowDocument document = new RadFlowDocument();
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
editor.InsertText("Before text");
editor.InsertText("åäö ÅÄÖ ☕"); // This line will not appear in the pdf
editor.InsertText("After text");
using (Stream output = new FileStream("specialCharTest.pdf", FileMode.OpenOrCreate))
{
PdfFormatProvider provider = new PdfFormatProvider();
provider.Export(document, output);
}
}
Special characters wont work :-/
string cultureName = Thread.CurrentThread.CurrentCulture.Name;
CultureInfo cultureInfo= new CultureInfo(cultureName);
if (cultureInfo.NumberFormat.NumberDecimalSeparator != ".")
{
cultureInfo.NumberFormat.NumberDecimalSeparator = ".";
Thread.CurrentThread.CurrentCulture = cultureInfo;
}
Borders are not correctly imported from HTML.
Workaround: Set borders in code:
var tables = document.EnumerateChildrenOfType<Table>();
var border = new Border(1, BorderStyle.Single, new ThemableColor(Colors.Black));
foreach (var table in tables)
{
table.Borders = new TableBorders(border);
foreach (var row in table.Rows)
{
foreach (var cell in row.Cells)
{
cell.Borders = new TableCellBorders(border);
}
}
}
There is a discrepancy between RadWordsProcessing and MS Word:
A possible workaround could be to set the row height the same as the image height:row.Height = new TableRowHeight(HeightType.Exact, image.Image.Height);
There are 27 types of border styles in the Open XML specification and they are implemented in RadFlowDocument. Part of the borders are already supported (eg. None, Single, Dotted) when exporting to HTML, all others are treated as None and stripped.
The HTML format doesn't support all types of border styles OOXML format supports.
Hello,
we are describing a reproducable problem (WordProcessing demo page), where DOCX footnotes are not imported as expected.
Current behaviour:
Upon converting a custom DOCX (including footnotes) into a DOCX again, using the WordProcessing demo, the converted document does no longer contain any footnotes.
Expected behaviour:
The downloaded DOCX should still contain all footnotes from the uploaded DOCX after converting it.
How to reproduce:
Is there anything that can be done as a workaround until this has been resolved?
Thank you in advance.
Kind Regards,
Dominik