|
|
Hi support,
We are currently using PdfFreeTextAnnotation's.
For normal appearances we perform the following (which works as expected):
annotation.CreateEmptyAppearance(AppearanceStreamModes.Normal); var textObj = PdfTextObject.Create("normal text", xLocation, yLocation, PdfFont.CreateStock(document, fontName), fontSize); annotation.NormalAppearance.Add(textObj); annotation.GenerateAppearance(AppearanceStreamModes.Normal);
However, when we perform the same calls to the Down and Rollover appearances, they do not activate when the mouse is over the annotation.
annotation.CreateEmptyAppearance(AppearanceStreamModes.Rollover); var textObj = PdfTextObject.Create("rollover text", xLocation, yLocation, PdfFont.CreateStock(document, fontName), fontSize); annotation.RolloverAppearance.Add(textObj); annotation.GenerateAppearance(AppearanceStreamModes.Rollover);
For the above code, we would expect the text on the annotation to change from "normal text" to "rollover text" when the mouse is over the annotation.
Any ideas?
Do you also have any samples to how/when the Annotations Popup is used and activated?
|