PageNumberingLabel of unknown height

PageNumberingLabel of unknown height

Forum member · May 13, 2009
I'm creating a PDF that pulls all of its styles and strings from a database, so I dont know how long each string will be or its font size. Its easy enough with TextAreas to determine its height using GetRequiredHeight() once its filled with text, but PageNumberingLabel's don't have this. Is there any way around this problem?

Re: PageNumberingLabel of unknown height

Support · May 13, 2009
Hello, It is not possible to get the height required by the PageNumberingLabel element. You can get the height of the text by adding the Ascender and the Descender. You can get these values by using the GetAscender and GetDescender methods of the Font class. These methods will take the font size as parameter. You can set this height to the page numbering label. Thanks, ceTe Software Support Team.