We're seeing another issue with PDF output using the new engine.
The code below correctly outputs text on multiple lines if useNewEngine is false. If useNewEngine is true then the output is all on one line.
Testing with 10.10.4
- Code: Select all
var document = new Spire.Doc.Document(false);
//var document = new Spire.Doc.Document(true); //newline characters ignored
var section = document.AddSection();
var table = section.AddTable(false);
table.PreferredWidth = new PreferredWidth(WidthType.Percentage, (short)100);
var row = table.AddRow(1);
var para = row.Cells[0].AddParagraph();
para.Text = "Testing\n\nNew line";
var docXStream = new MemoryStream();
document.SaveToStream(docXStream, Spire.Doc.FileFormat.PDF);
return docXStream.ToArray();