How to get the real textstamp size?

Hi, Support:

I use TextStamp to add text to pdf page, for example:

                                       Dim textStamp As TextStamp = New TextStamp(“Some Text Stamp context”)
                                        textStamp.TextState.Font = FontRepository.FindFont("Arial")
                                        textStamp.TextState.FontSize = 20
                                        textStamp.Background = False
                                        textStamp.TextAlignment = HorizontalAlignment.Center
                                        textStamp.XIndent = (w - textStamp.Width) / 2
                                        textStamp.XIndent = 20
                                        textStamp.YIndent = 30
                                        textStamp.TextState.FontStyle = FontStyles.Bold
                                         textStamp.TextState.ForegroundColor = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.red)
                                        textStamp.Put(NewPage)
                                       
                                      Dim H as integer,W as integer
                                       H=textStamp.Height
                                       W=textStamp.Width

Why the value of W and H are always 0? What’s wrong?please fix it or tell how to get the true value
of Textstam’s size.

Thanks!

@ducaisoft
We are looking into your question and will write to you within a day.

@ducaisoft
I looked at the existing comments.
The note on the TextStamp.Width and TextStamp.Height properties
says the following:

//Dezired Width and Height are 0 initialy. If user wants to set Width or Height of the text, he set this property and 
//ZoomX or/and ZoomY will be recaculated in Put method.
//Before this Zooms are default (1).