![]() |
PDFix SDK
6.5.0
|
Public Member Functions | |
virtual PdfAnnotSubtype | GetSubtype ()=0 |
Gets an annotation's subtype. More... | |
virtual PdfAnnotFlags | GetFlags ()=0 |
Gets an annotation's flags. More... | |
virtual void | GetAppearance (PdfAnnotAppearance *appearance)=0 |
Gets an annotation's appearance. More... | |
virtual PdsStream * | GetAppearanceXObject (PdfAnnotAppearanceMode mode)=0 |
Gets an annotation's appearance stream. More... | |
virtual bool | SetAppearanceFromXObject (PdsStream *xobj, PdfAnnotAppearanceMode mode)=0 |
Set an annotation's appearance from an XObject. More... | |
virtual void | GetBBox (PdfRect *bbox)=0 |
Gets the annotation bounding box. More... | |
virtual bool | PointInAnnot (PdfPoint *point)=0 |
virtual bool | RectInAnnot (PdfRect *rect)=0 |
virtual PdsObject * | GetStructObject (bool struct_parent)=0 |
virtual PdsDictionary * | GetObject ()=0 |
Gets the annotation object dictionary. More... | |
virtual void | NotifyWillChange (const wchar_t *key)=0 |
Broadcasts a PDAnnotWillChange() notification. Clients must call this method before making any change to a custom annotation. More... | |
virtual void | NotifyDidChange (const wchar_t *key, int err)=0 |
Broadcasts a PDAnnotDidChange() notification. Clients must call this method after making any change to a custom annotation. More... | |
virtual bool | IsValid ()=0 |
PdfAnnot class.
An annotation associates an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard.
|
pure virtual |
Gets an annotation's appearance.
appearance | (filled by method) Pointer to a PdfAnnotAppearance structure. |
|
pure virtual |
Gets an annotation's appearance stream.
mode | The apearance mode. |
|
pure virtual |
Gets the annotation bounding box.
bbox | (Filled by the method) Pointer to PdfRect structure to fill. |
|
pure virtual |
Gets an annotation's flags.
|
pure virtual |
Gets the annotation object dictionary.
|
pure virtual |
Gets the corresponding struct element object from the document structure tree. Iterates hierarchy of objects from the structure tree. If there is a reference to the current annotation, a structure element object with this reference is returned.
struct_parent | If set to true, ParentTree is used in finding the structure element to which the annotation belongs. |
|
pure virtual |
Gets an annotation's subtype.
|
pure virtual |
Tests whether an annotation is valid. This is intended only to ensure that the annotation has not been deleted, not to ensure that all necessary information is present and valid.
|
pure virtual |
Broadcasts a PDAnnotDidChange() notification. Clients must call this method after making any change to a custom annotation.
key | The name of the key in the annotation's dictionary that is changing. |
err | An error code to pass to any method registered to receive the PDAnnotDidChange() notification. Pass zero if the annotation was changed successfully. Pass a nonzero value if an error occurred while changing the annotation. |
|
pure virtual |
Broadcasts a PDAnnotWillChange() notification. Clients must call this method before making any change to a custom annotation.
key | The name of the key in the annotation's dictionary that is changing. |
|
pure virtual |
Tests whether the specified point is within an annotation. If an annotation consists of more quads, it tests each quad individually.
point | The point to test. |
|
pure virtual |
Tests whether the specified rect is within an annotation. If an annotation consists of more quads, it tests each quad individually.
rect | The rectangle to test. |
|
pure virtual |
Set an annotation's appearance from an XObject.
xobj | Pointer to a XObject. |