WidgetRefreshAppearance Method |
Regenerates the appearance stream for the annotation.
This method can be used to auto-generate the annotation appearance after creating
or modifying the annotation without providing an explicit appearance or
setting the "NeedAppearances" flag in the AcroForm dictionary.
Namespace:
pdftron.PDF.Annots
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public void RefreshAppearance()
Public Sub RefreshAppearance
public:
virtual void RefreshAppearance() sealed
function RefreshAppearance();
Implements
IAnnotRefreshAppearanceExceptions Exception | Condition |
---|
[!:PDFNetException] | PDFNetException the PDFNet exception |
Remarks If this annotation contains text, and has been added to a rotated page, the text in
the annotation may be rotated. If RefreshAppearance is called *after* the annotation is added
to a rotated page, then any text will be rotated in the opposite direction of the page
rotation. If this method is called *before* the annotation is added to any rotated page, then
no counter rotation will be applied. If you wish to call RefreshAppearance on an annotation
already added to a rotated page, but you don't want the text to be rotated, you can do one
of the following; temporarily un-rotate the page, or, temporarily remove the "Rotate" object
from the annotation. To support users adding text annotations while using a PDF viewer,
you can also add any viewer rotation to the annotations Rotate object, to have text always
rotated correctly, from the users perspective.
See Also