I’m trying to generate PDF content dynamically. since the number of pages is unknown, created a new page and added 20 number of Tables to first page, like below.
Page dynamicPage = tempDocument.Pages;
table.IsBroken = true;
table.IsKeptWithNext = true;
table.IsInNewPage = false;
// tempDocument.ProcessParagraphs(); – tried no use
MemoryStream temp_outputStream = new MemoryStream();
tempDocument.Save(temp_outputStream); // throws error here
FYI: there are no illegal charcters in the document.
Please suggest, how to fix this.
and also is it possible to calculate the total tables height in a given pages, to check total tables height exceeds the page pureheight.