public void TestTableSizePartitioning() { string longString = new string('x', 50); // Good luck. builder.StartTable(1); builder.StartTableRow(false); builder.StartTableCell(); builder.AppendText(longString, TextStyle.Normal); builder.FinishTableCell(); builder.FinishTable(); double width = ((Table)doc.LastSection.Elements[0]).Columns[0].Width.Point; // fixme Assert.GreaterOrEqual(width, 250); }
/// <summary> /// Render the given table block to the PDF document. /// </summary> /// <param name="renderer">The PDF renderer.</param> /// <param name="table">The table block to be renderered.</param> protected override void Write(PdfBuilder renderer, Table table) { renderer.StartTable(table.ColumnDefinitions.Count); renderer.WriteChildren(table); renderer.FinishTable(); }