Unplanned
Last Updated: 24 Jun 2022 08:19 by Lokesh
Lokesh
Created on: 24 Jun 2022 08:19
Category: PdfProcessing
Type: Bug Report
0
WordsProcessing: RtfFormatProvider: The table border styles are not imported correctly with a specific document

The table border styles are not imported correctly with a specific document.

Workaropund:

RtfFormatProvider provider = new RtfFormatProvider();
RadFlowDocument document = provider.Import(File.ReadAllText(@"..\..\test.rtf"));
 
PdfFormatProvider pdfProvider = new PdfFormatProvider();
var tables = document.EnumerateChildrenOfType<Table>();

foreach (var table in tables)
{
    table.Borders = new TableBorders(new Border(BorderStyle.None));
}


using (FileStream stream = File.OpenWrite(@"..\..\result.pdf"))
{
    pdfProvider.Export(document, stream);
}

 

 

0 comments