A note annotation (known as "text" annotation in <PDF reference 1.7>) represents a "sticky note" attached to a point in the PDF document. When closed, the annotation appears as an icon; when open, it displays a pop-up window containing the text of the note in a font and size chosen by the viewer application.
A note annotation can also be used as a reply to a markup annotation, or a state annotation:
-
When as a reply, the note annotation should not be shown alone but together with other replies in the form of threaded comments. Function FSDK.Note.GetReplyTo can be used to get the markup annotation, to which the note annotation replies.
-
When as a state, the note annotation would not be shown alone. Function FSDK.Note.IsStateAnnot can be used to judge if a note annotation is used as a state.
Note annotation is a kind of markup annotation, so class FSDK.Note is derived from class FSDK.Markup. It offers functions to get/set note annotation's properties and reset appearance of a note annotation.
- Note
- For a newly created common note annotation, if user calls function FSDK.Annot.ResetAppearanceStream directly without setting any properties, the default appearance will be used:
border color = 0xFFFFFF00 (yellow), opacity = 1.0, icon name = "Comment".
- See also
- FSDK.Markup
| FSDK.Note.GetIconName |
( |
| ) |
|
|
inline |
Get icon name.
This property has effect on note annotation's appearance. Note annotation has predefined standard icon names:
"Check", "Circle", "Comment", "Cross", "Help", "Insert", "Key", "NewParagraph", "Note", "Paragraph", "RightArrow", "RightPointer", "Star", "UpArrow", "UpLeftArrow".
An empty icon name string means current note annotation would be treated as "Note" icon.
- Returns
- Icon name string.
| FSDK.Note.SetIconName |
( |
|
icon_name | ) |
|
|
inline |
Set icon name.
This property has effect on note annotation's appearance. Note annotation has predefined standard icon names:
"Check", "Circle", "Comment", "Cross", "Help", "Insert", "Key", "NewParagraph", "Note", "Paragraph", "RightArrow", "RightPointer", "Star", "UpArrow", "UpLeftArrow".
An empty icon name string means current note annotation would be treated as "Note" icon.
For a newly created note annotation, if current function is not called, icon name will be "Comment" by default.
If user wants the new icon name has effect on annotation's appearance, please call function FSDK.Annot.ResetAppearanceStream after setting the new icon name.
- Parameters
-
| [in] | icon_name | New icon name string to be set. |
- Returns
- None.