I need to place multiple TextStamps in the same position ie. bottom right without overlapping. I have an implementation that covers most of the requirements, however with multi-line text that is word wrapped I am unable to keep it from overlapping.
For example if I have stamp1 in bottom right that is single line, then I add a stamp2 with long text that is wordwrapped with a width of 30% of the page and it has 3 lines of text, then I add another stamp3 with 1 line of text. How can i get them to not overlap?
The text could be anything the user inputs, so I need to calculate the height, but it seems there is no option to do that. I can get the height of a TextFragment and that works for 1 liners by increasing the bottom margin by that height, but it doesn’t take into account word wrap with multiple lines because that is part of the TextStamp. Is there a way to get the height of the TextStamp or coordinates to measure it or get the number of lines after word wrap?