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!