This is the abstract superclass for all annotations (see Section 8.4, Annotations,
in the PDF Reference). Acrobat has two built-in annotation classes: PDTextAnnot and PDLinkAnnot.
Plug-ins add movie, Widget (form field), and other annotation types. You can define new annotation
subtypes by creating new annotation handlers (see Developing Plug-ins and Applications).
There are no objects of type PDAnnot, but you can use
PDAnnot methods on any subclass of PDAnnot.
The Acrobat SDK provides three useful macros to cast among PDAnnot and its text annotation
and link annotation subclasses (see PDExpT.h). These are:
- CastToPDAnnot()
- CastToPDTextAnnot()
- CastToPDLinkAnnot()
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
A data structure containing callbacks that implement an annotation manager. The callbacks implement the annotation manager functions (for example, view, delete, or export the annotations of a document as a list, sorted by type, author, or date).
To fully use a PDAnnotHandler, the AVAnnotHandler associated with this annotation must have its AVAnnotHandlerGetInfoProc() and AVAnnotHandlerDeleteInfoProc() callbacks defined.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
typedef void* PDAnnotHandlerClipboardData;
Opaque data used by PDAnnotHandlers.
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
struct _t_PDAnnotHandler {}
A data structure containing callbacks that implement an annotation manager. The callbacks implement the annotation manager functions (for example, view, delete, or export the annotations of a document as a list, sorted by type, author, or date).
To fully use a PDAnnotHandler, the AVAnnotHandler associated with this annotation must have its AVAnnotHandlerGetInfoProc() and AVAnnotHandlerDeleteInfoProc() callbacks defined.
See Also
Elements
| size | The size of the data structure. It must be set to sizeof(PDAnnotHandlerRec) . |
|
| userData | A pointer to a block of user-supplied data. |
|
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
(Optional) A callback for PDAnnotHandler. It returns true
if the copy operation is expected to succeed. It tests, for example, whether copying is allowed by document permissions.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
(Optional) A callback for PDAnnotHandler. It returns true
if the paste operation is expected to succeed. It 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.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
(Optional) A callback for PDAnnotHandler. It copies data from the annotation object to a new clipboard structure, and returns the clipboard structure.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
(Optional) A callback for PDAnnotHandler. It deletes information associated with an annotation. It frees all the memory associated with the annotation information.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
(Optional) A callback for PDAnnotHandler. It destroys data from an annotation that has been copied to a clipboard. This callback may be executed regardless of how many times (if any) the annotation was pasted.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
(Optional) A callback for PDAnnotHandler. It destroys the annotation handler structure when the application no longer requires it. The handler should destroy any dynamic memory stored in the userData
field.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
A callback for PDAnnotHandler. It gets the annotation handler information flags, which indicate the operations allowed with annotations of this type.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
A callback for PDAnnotHandler. It gets the annotation information for an annotation.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
A callback for PDAnnotHandler. It gets the heel point (the focus or starting point) for the annotation. For a rectangular annotation, this is usually the top left corner.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
A callback for PDAnnotHandler. It is called by the host application to obtain a print appearance (a Form XObject). If this callback is not implemented, the default appearance (if any) is used.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
A callback for PDAnnotHandler. It gets an ASAtom indicating the annotation type for which the handler is responsible. This corresponds to the annotation's Subtype key in the PDF file.
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
(Optional) A callback for PDAnnotHandler. It creates a new annotation on the specified page using clipboard data generated by PDAnnotCopy().
See Also
Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Registers a handler for an annotation subtype, replacing any previous handler that had been registered for that subtype. The annotation handler is not registered if its PDAnnotHandlerGetTypeProc() returns NULL
.
To effectively use a PDAnnotHandler, the AVAnnotHandler associated with this annotation must have its AVAnnotHandlerGetInfoProc() and AVAnnotHandlerDeleteInfoProc() callbacks defined.
PDF Library applications can use this method to register their annotation handlers. Link and Watermark annotations have default handlers. For other annotation types, the applications should register their own handlers.
Parameters
| handler — | IN/OUT A pointer to a structure containing the annotation handler's callbacks. This structure must not be freed after this call, but must be retained. |
See Also
Since
File: PDProcs.h |
Line: 6739 |
Copyright 2020 Adobe Systems Incorporated and its licensors. All rights reserved. Adobe and the Adobe logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. This product contains either BSAFE and/or TIPEM software by RSA Security, Inc. Portions utilize Microsoft Windows Media Technologies. Copyright © 2006 Microsoft Corporation. All Rights Reserved. Notices, terms and conditions pertaining to other third party software are located at http://www.adobe.com/go/thirdparty/ and incorporated herein by reference.
Wed Feb 7 2024, 2:16 pm IST