Hi we’re still having troubles related to the code in this thread…
Basically the issue is now, depending on the size of the font used, sometimes the whole footer is disapppearing… e.g in that code if you change
float footerFontSize = GetFooterFontSize(availableWidth);
to
float footerFontSize = 6; // or greater
the whole table disappears. We’re hacking around with it playing with the footer.Margin.Bottom which seems to change the behaviour. It seems like if the table exceeds some bounds the whole table disappears and instead there’s a mysterious dot in the bottom left where you’d expect the table to start.
We’re also seeing issues with cells within the table being clipped… with the code sometimes rendering this…
image.png (2.4 KB)
which is supposed to read 9 von 15 and sometimes this…
image.png (2.6 KB)
You’d expect it to either wrap the contents of the cell or display the text, not random clipping, with longer text not getting clipped whilst shorter text is clipped.
Can you explain what’s going? Is there some setting to stop things being clipped?
We’re finding we can solve individual cases by playing around with the font sizes, cell sizes, footer margins, however it seems unlikely that we can consistently get the desired result across documents of different dimensions, with different numbers of pages and other data associated with the document appearing in the footer we’re attempting to create.