I am using the code below to replace a mark by a table. After the table, I tried to add a text
$section->addText("That was the table");
.