![]() |
PDFix SDK
7.2.0
|
#include <pdfix.h>
Public Member Functions | |
virtual PdfAnnotSubtype | GetSubtype () const =0 |
Gets an annotation's subtype. More... | |
virtual PdfAnnotFlags | GetFlags () const =0 |
Gets an annotation's flags. More... | |
virtual bool | SetFlags (PdfAnnotFlags flags)=0 |
Sets 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 bool | RefreshAppearance ()=0 |
Regenerates the appearance stream for the annotation. More... | |
virtual void | GetBBox (PdfRect *bbox) const =0 |
Gets the annotation bounding box. More... | |
virtual bool | PointInAnnot (const PdfPoint *point) const =0 |
virtual bool | RectInAnnot (const PdfRect *rect) const =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 |
virtual void | NotifyDidChange (const wchar_t *key, int err)=0 |
virtual bool | IsValid () const =0 |
virtual bool | IsMarkup () const =0 |
Tests whether an annotation is markup. More... | |
virtual bool | CanCopy ()=0 |
virtual bool | CanPaste (PdfPage *dest_page, const PdfPoint *center, void *data)=0 |
virtual void * | Copy ()=0 |
Copies annotation object data to a clipboard structure, from which it can be pasted. More... | |
virtual PdfAnnot * | Paste (PdfPage *dest_page, PdfPoint *center, void *data)=0 |
virtual void | DestroyClipboardData (void *data)=0 |
virtual int | GetStateFlags () const =0 |
Get the annotation state flags. More... | |
virtual bool | SetStateFlags (PdfStateFlags flags)=0 |
Set the annotation state flags. More... | |
virtual PdsDictionary * | GetPageObject ()=0 |
Get the annotation page object. More... | |
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 |
Tests whether the data from an annotation on a given page can be copied to a clipboard for pasting. This depends on whether there is a PdfAnnotHandler with copy and paste support for the annotation, and whether copying is allowed by document permissions.
|
pure virtual |
Tests whether data from an annotation that has been copied to a clipboard can be pasted to a location on a page. Pasting can be disallowed by document permissions, or because the annotation cannot be accurately reproduced in the destination document.
dest_page | The page to which the annotation would be pasted. |
center | The location for the center of the annotation on the destination page. |
data | The clipboard data that will be pasted to the page. |
|
pure virtual |
Copies annotation object data to a clipboard structure, from which it can be pasted.
|
pure virtual |
Destroys data that has been copied from an annotation object into a clipboard. Use this method after successfully pasting the data to a new document.
dest_page | The page to which the annotation is pasted. |
center | The location for the center of the annotation on the destination page. |
|
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 |
Get the annotation page object.
|
pure virtual |
Get the annotation state flags.
|
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 markup.
|
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 |
Pastes copied annotation data from a clipboard structure to a new annotation object in a specified document. After successfully pasting the data, use PdfAnnot::DestroyClipboardData() to free the associated memory.
dest_page | The page to which the annotation is pasted. |
center | The location for the center of the annotation on the destination page. If center is null, the annotation will be moved to the center of the destination page's crop box. |
|
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 |
Regenerates the appearance stream for the annotation.
|
pure virtual |
Set an annotation's appearance from an XObject.
xobj | Pointer to a XObject. |
|
pure virtual |
Sets an annotation's flags.
The | combination of PdfAnnotFlags flag keys. |
|
pure virtual |
Set the annotation state flags.
flags | the PdfStateFlags flags to be set |