Hello All,
I am inserting certain amount of text into a block which is part of a table cell. , Post to that i am checking the size of the table and if it is over to the size of the page height , i am doing a split on the block.
During Debug time , i can observe that the block is split properly but when we check the generated PDF file , we are observing the text to be overflowing in first page. Is this some thing that any one can help me.
Block answerBlock = new Block();
answerBlock.InsertText(Answer);
if (textAreaTable.Measure().Height + > pageHeight - 120)
{
Size setSize = answerBlock.Measure(new Size(450, pageHeight - (120 )));
Block secondBlock = answerBlock.Split();
var mySize = answerBlock.DesiredSize;
var pendingElements = answerBlock.PendingElements;
answerCell.Blocks.Add(answerBlock);
}