Layer | PD_Layer |
Object | PDBookmark |
A bookmark corresponds to an outline object in a PDF document (see Section 8.2.2, Document Outline, in the PDF Reference). A document outline allows the user to navigate interactively from one part of the document to another. An outline consists of a tree-structured hierarchy of bookmarks, which display the document's structure to the user. Each bookmark has:
Bookmarks can either be created interactively by the user through Acrobat's user interface or can be generated programmatically. The typical action for a user-created bookmark is to move to another location in the current document, although any action (see PDAction) can be specified.
Each bookmark in the bookmark tree structure has zero or more children that appear indented on screen, and zero or more siblings that appear at the same indentation level. All bookmarks except the bookmark at the top level of the hierarchy have one parent, the bookmark under which it is indented. A bookmark is said to be open if its children are visible on screen, and closed if they are not.
A plug-in can get or set:
Typedef | ||
---|---|---|
PDBookmark
A bookmark on a page in a PDF file. Each bookmark has a title that appears on screen, and an action that specifies what happens when a user clicks on the bookmark. Bookmarks can either be created interactively by the user through the Acrobat viewer's user interface or programmatically generated. The typical action for a user-created bookmark is to move to another location in the current document, although any action (see PDAction) can be specified.
|
Enumeration | ||
---|---|---|
Method | ||
---|---|---|
Adds aBookmark as the last child of parent, adjusting the tree containing parent appropriately. If parent previously had no children, it is open after the child is added.
|
||
PDBookmark PDBookmarkAddNewChild(PDBookmark aBookmark, const char* initialText)
Adds a new bookmark to the tree containing aBookmark, as the new last child of aBookmark. If aBookmark previously had no children, it will be open after the child is added.
|
||
Adds a new bookmark to the tree containing aBookmark, as the new last child of aBookmark. If aBookmark previously had no children, it will be open after the child is added.
|
||
PDBookmark PDBookmarkAddNewSibling(PDBookmark aBookmark, char* initialText)
Adds a new bookmark to the tree containing aBookmark, as the new right sibling.
|
||
Adds a new bookmark to the tree containing aBookmark, as the new right sibling.
|
||
Adds newNext as the new right sibling to aBookmark.
|
||
Adds newPrev as the new left sibling to aBookmark, adjusting the tree containing aBookmark appropriately.
|
||
Adds a copy of the bookmark subtree source to aBookmark, as a new last child of aBookmark. This new item will have the text value sourceTitle, will be open, and will have no destination attribute. source must have been previously unlinked. If aBookmark previously had no children, it will be open after the subtree is added.
|
||
Adds a copy of the bookmark subtree source to aBookmark, as a new last child of aBookmark. This new item will have the text value sourceTitle, will be open, and will have no destination attribute. source must have been previously unlinked. If aBookmark previously had no children, it will be open after the subtree is added.
|
||
void PDBookmarkDestroy(PDBookmark aBookmark)
Removes a bookmark subtree from the bookmark tree containing it.
|
||
A bookmark has been opened/closed, its action has been changed, its title has been changed, or children have been added to it.
|
||
A bookmark was opened or closed.
|
||
void PDBookmarkDidChangePosition(PDBookmark bookmark, void* clientData)
One or more bookmarks have been moved.
|
||
A bookmark was destroyed.
|
||
void PDBookmarkDidUnlink(PDBookmark bookmark, void* clientData)
A bookmark was unlinked from the bookmark tree.
|
||
Tests whether two bookmarks are equal. Two bookmarks are equal only if their Cos objects are equal (see CosObjEqual()).
|
||
PDBookmark PDBookmarkFromCosObj(CosObj obj)
Converts a Cos dictionary object to a bookmark and checks the validity of the bookmark. This method does not copy the object, but is instead the logical equivalent of a type cast.
|
||
PDAction PDBookmarkGetAction(PDBookmark aBookmark)
Gets a bookmark's action. After you obtain the action, you can execute it with AVDocPerformAction().
|
||
PDBookmark PDBookmarkGetByTitle(PDBookmark aBookmark, const char* aname, ASInt32 nameLen, ASInt32 maxdepth)
Gets the first bookmark whose title is aName.
|
||
Gets the first bookmark whose title is set in passed the ASText object.
|
||
Retrieves the color of the specified bookmark.
|
||
CosObj PDBookmarkGetCosObj(PDBookmark aBookmark)
Gets the Cos object for a bookmark. This method does not copy the object, but is instead the logical equivalent of a type cast.
|
||
ASInt32 PDBookmarkGetCount(PDBookmark aBookmark)
Gets the number of open bookmarks in a subtree.
|
||
PDBookmark PDBookmarkGetFirstChild(PDBookmark aBookmark)
Gets a bookmark's first child.
|
||
ASInt32 PDBookmarkGetFlags(PDBookmark bm)
Retrieves the flags of the specified bookmark.
|
||
ASInt32 PDBookmarkGetIndent(PDBookmark aBookmark)
Returns the indentation level of a bookmark in its containing tree.
|
||
PDBookmark PDBookmarkGetLastChild(PDBookmark aBookmark)
Gets a bookmark's last child.
|
||
PDBookmark PDBookmarkGetNext(PDBookmark aBookmark)
Gets a bookmark's next (right) sibling.
|
||
PDBookmark PDBookmarkGetParent(PDBookmark aBookmark)
Gets a bookmark's parent bookmark.
|
||
PDBookmark PDBookmarkGetPrev(PDBookmark aBookmark)
Returns a bookmark's previous (left) sibling.
|
||
Gets a bookmark's title.
|
||
Gets a bookmark's title as an ASText object.
|
||
ASBool PDBookmarkHasChildren(PDBookmark aBookmark)
Tests whether a bookmark has children.
|
||
ASBool PDBookmarkIsOpen(PDBookmark aBookmark)
Tests whether a bookmark is open. An open bookmark shows all its children.
|
||
ASBool PDBookmarkIsValid(PDBookmark aBookmark)
Tests whether a bookmark is valid. This is intended only to ensure that the bookmark has not been deleted, not to ensure that all necessary information is present and valid.
|
||
void PDBookmarkRemoveAction(PDBookmark aBookmark)
Removes a bookmark's action.
|
||
Sets a bookmark's action.
|
||
Sets the color of the specified bookmark.
|
||
Sets the flags of the specified bookmark.
|
||
Opens or closes a bookmark. An open bookmark shows its children, while a closed bookmark does not.
|
||
Sets a bookmark's title.
|
||
Sets a bookmark's title.
|
||
void PDBookmarkUnlink(PDBookmark aBookmark)
Unlinks a bookmark from the bookmark tree that contains it, and adjusts the tree appropriately.
|
||
void PDBookmarkWasCreated(PDBookmark bookmark, void* clientData)
A bookmark was created.
|
||
A bookmark will be opened or closed, its action will be changed, its title will be changed, or children will be added to it.
|
||
A bookmark will be opened or closed.
|
||
void PDBookmarkWillDestroy(PDBookmark bookmark, void* clientData)
A bookmark will be destroyed.
|
PDBookmark |
Product availability: All |
Platform availability: All |
typedef OPAQUE_64_BITS PDBookmark;
A bookmark on a page in a PDF file. Each bookmark has a title that appears on screen, and an action that specifies what happens when a user clicks on the bookmark. Bookmarks can either be created interactively by the user through the Acrobat viewer's user interface or programmatically generated. The typical action for a user-created bookmark is to move to another location in the current document, although any action (see PDAction) can be specified.
See Also
File: PDExpT.h |
Line: 1084 |
PDBookmarkFlags |
Product availability: All |
Platform availability: All |
enum PDBookmarkFlags {
kPDBookmarkFontNormal = 0x00,
kPDBookmarkFontItalic = 0x01,
kPDBookmarkFontBold = 0x02,
kPDBookmarkFontBoldItalic = 0x03
}
File: PDExpT.h |
Line: 1090 |
PDBookmarkAddChild | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkAddChild(PDBookmark parent, PDBookmark aBookmark)
Adds aBookmark
as the last child of parent
, adjusting the tree containing parent
appropriately. If parent
previously had no children, it is open after the child is added.
Parameters
parent — | The parent of the bookmark being added. |
|
aBookmark — | The bookmark that will become the last child of |
See Also
Notifications
Since
File: PDProcs.h |
Line: 909 |
PDBookmarkAddNewChild | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDBookmark PDBookmarkAddNewChild(PDBookmark aBookmark, const char* initialText)
Adds a new bookmark to the tree containing aBookmark
, as the new last child of aBookmark
. If aBookmark
previously had no children, it will be open after the child is added.
Parameters
aBookmark — | The bookmark to which a new last child is added. |
|
initialText — | The new bookmark's title. |
The newly created bookmark. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 773 |
PDBookmarkAddNewChildASText | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkAddNewChildASText(PDBookmark aBookmark, const ASText initialText)
Adds a new bookmark to the tree containing aBookmark
, as the new last child of aBookmark. If aBookmark
previously had no children, it will be open after the child is added.
Parameters
aBookmark — | The bookmark to which a new last child is added. |
|
initialText — |
The newly created bookmark. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 11486 |
PDBookmarkAddNewSibling | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
PDBookmark PDBookmarkAddNewSibling(PDBookmark aBookmark, char* initialText)
Adds a new bookmark to the tree containing aBookmark
, as the new right sibling.
Parameters
aBookmark — | The bookmark that will be the left sibling of the new bookmark. |
|
initialText — | The new bookmark's title. |
The newly created bookmark. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 752 |
PDBookmarkAddNewSiblingASText | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkAddNewSiblingASText(PDBookmark aBookmark, const ASText initialText)
Adds a new bookmark to the tree containing aBookmark
, as the new right sibling.
Parameters
aBookmark — | The bookmark that will be the left sibling of the new bookmark. |
|
initialText — |
The newly created bookmark. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 11460 |
PDBookmarkAddNext | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkAddNext(PDBookmark aBookmark, PDBookmark newNext)
Adds newNext
as the new right sibling to aBookmark
.
Parameters
aBookmark — | IN/OUT The bookmark that will receive a new right sibling. |
|
newNext — | IN/OUT The bookmark to become the new right sibling of |
See Also
Notifications
Since
File: PDProcs.h |
Line: 889 |
PDBookmarkAddPrev | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkAddPrev(PDBookmark aBookmark, PDBookmark newPrev)
Adds newPrev
as the new left sibling to aBookmark
, adjusting the tree containing aBookmark
appropriately.
Parameters
aBookmark — | The bookmark that will receive a new left sibling |
|
newPrev — | The bookmark to become the new left sibling of |
See Also
Notifications
Since
File: PDProcs.h |
Line: 871 |
PDBookmarkAddSubtree | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkAddSubtree(PDBookmark aBookmark, PDBookmark source, char* sourceTitle)
Adds a copy of the bookmark subtree source to aBookmark
, as a new last child of aBookmark
. This new item will have the text value sourceTitle
, will be open, and will have no destination attribute. source
must have been previously unlinked. If aBookmark
previously had no children, it will be open after the subtree is added.
Parameters
aBookmark — | IN/OUT The bookmark to which the subtree source will be added as a new last child. |
|
source — | IN/OUT The bookmark subtree to add. |
|
sourceTitle — | IN/OUT The new bookmark's title. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 797 |
PDBookmarkAddSubtreeASText | () |
Product availability: All |
Platform availability: All |
void PDBookmarkAddSubtreeASText(PDBookmark aBookmark, PDBookmark source, const ASText sourceTitle)
Adds a copy of the bookmark subtree source to aBookmark
, as a new last child of aBookmark
. This new item will have the text value sourceTitle
, will be open, and will have no destination attribute. source
must have been previously unlinked. If aBookmark
previously had no children, it will be open after the subtree is added.
Parameters
aBookmark — | The bookmark to which the subtree source will be added as a new last child. |
|
source — | The bookmark subtree to add. |
|
sourceTitle — |
See Also
Notifications
Since
File: PDProcs.h |
Line: 11515 |
PDBookmarkDestroy | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkDestroy(PDBookmark aBookmark)
Removes a bookmark subtree from the bookmark tree containing it.
Parameters
aBookmark — | IN/OUT The root bookmark of the subtree to remove. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 812 |
PDBookmarkDidChange | () |
Product availability: All |
Platform availability: All |
void PDBookmarkDidChange(PDBookmark bookmark, ASAtom key, ASInt32 err, void* clientData)
A bookmark has been opened/closed, its action has been changed, its title has been changed, or children have been added to it.
Parameters
bookmark — | The bookmark that will be changed. |
|
key — | The |
|
err — | The error code. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1089 |
PDBookmarkDidChangeOpenState | () |
Product availability: All |
Platform availability: All |
void PDBookmarkDidChangeOpenState(PDBookmark bookmark, ASBool open, void* clientData)
A bookmark was opened or closed.
Parameters
bookmark — | The bookmark that was opened or closed. |
|
open — | When |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 2274 |
PDBookmarkDidChangePosition | () |
Product availability: All |
Platform availability: All |
void PDBookmarkDidChangePosition(PDBookmark bookmark, void* clientData)
One or more bookmarks have been moved.
Parameters
bookmark — | The bookmark that was moved. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1036 |
PDBookmarkDidDestroy | () |
Product availability: All |
Platform availability: All |
void PDBookmarkDidDestroy(PDBookmark bookmark, ASInt32 err, void* clientData)
A bookmark was destroyed.
Parameters
bookmark — | The bookmark that was destroyed. Because the bookmark has been destroyed, it is not possible to access it. |
|
err — | The error code. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
Notifications
File: PIPokes.h |
Line: 1115 |
PDBookmarkDidUnlink | () |
Product availability: All |
Platform availability: All |
void PDBookmarkDidUnlink(PDBookmark bookmark, void* clientData)
A bookmark was unlinked from the bookmark tree.
Parameters
bookmark — | The bookmark that was unlinked. Because the bookmark has not been destroyed, it is possible to access it. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
Notifications
File: PIPokes.h |
Line: 1797 |
PDBookmarkEqual | () |
Product availability: All |
Platform availability: All |
ASBool PDBookmarkEqual(PDBookmark aBookmark, PDBookmark bookmark2)
Tests whether two bookmarks are equal. Two bookmarks are equal only if their Cos objects are equal (see CosObjEqual()).
Parameters
aBookmark — | The first bookmark to compare. |
|
bookmark2 — | The second bookmark to compare. |
|
See Also
Since
File: PDProcs.h |
Line: 1140 |
PDBookmarkFromCosObj | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkFromCosObj(CosObj obj)
Converts a Cos dictionary object to a bookmark and checks the validity of the bookmark. This method does not copy the object, but is instead the logical equivalent of a type cast.
Parameters
obj — | The dictionary Cos object whose bookmark is obtained. |
The bookmark corresponding to the Cos object. |
See Also
Exceptions
Since
File: PDProcs.h |
Line: 1169 |
PDBookmarkGetAction | () |
Product availability: All |
Platform availability: All |
PDAction PDBookmarkGetAction(PDBookmark aBookmark)
Gets a bookmark's action. After you obtain the action, you can execute it with AVDocPerformAction().
Parameters
aBookmark — | IN/OUT The bookmark whose action is obtained. |
The bookmark's action. |
See Also
Since
File: PDProcs.h |
Line: 1116 |
PDBookmarkGetByTitle | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkGetByTitle(PDBookmark aBookmark, const char* aname, ASInt32 nameLen, ASInt32 maxdepth)
Gets the first bookmark whose title is aName
.
Parameters
aBookmark — | IN/OUT The root of the bookmark subtree to search. |
|||||||||
aname — | IN/OUT The text value to search for. Character codes in |
|||||||||
nameLen — | IN/OUT The length of |
|||||||||
maxdepth — | IN/OUT The number of subtree levels to search, not counting the root level:
|
The bookmark with the specified title, or a |
Since
File: PDProcs.h |
Line: 842 |
PDBookmarkGetByTitleASText | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkGetByTitleASText(PDBookmark aBookmark, const ASText title, ASInt32 maxDepth)
Gets the first bookmark whose title is set in passed the ASText object.
Parameters
aBookmark — | The root of the bookmark subtree to search. |
|||||||||
title — | ||||||||||
maxDepth — | The number of subtree levels to search, not counting the root level.
|
The bookmark with the specified title, or a |
See Also
Since
File: PDProcs.h |
Line: 11538 |
PDBookmarkGetColor | () |
Product availability: All |
Platform availability: All |
ASBool PDBookmarkGetColor(PDBookmark bm, PDColorValue pdcvOut)
Retrieves the color of the specified bookmark.
An exception is thrown if the bookmark is invalid or the existing color is malformed in the PDF file.
Parameters
bm — | The bookmark in question. |
|
pdcvOut — | (Filled by the method) The color of the bookmark in PDColorValue format. |
|
See Also
Since
File: PDProcs.h |
Line: 7939 |
PDBookmarkGetCosObj | () |
Product availability: All |
Platform availability: All |
CosObj PDBookmarkGetCosObj(PDBookmark aBookmark)
Gets the Cos object for a bookmark. This method does not copy the object, but is instead the logical equivalent of a type cast.
Parameters
aBookmark — | IN/OUT The bookmark whose Cos object is obtained. |
The dictionary Cos object for the bookmark. The contents of the dictionary can be enumerated using CosObjEnum(). |
See Also
Since
File: PDProcs.h |
Line: 1154 |
PDBookmarkGetCount | () |
Product availability: All |
Platform availability: All |
ASInt32 PDBookmarkGetCount(PDBookmark aBookmark)
Gets the number of open bookmarks in a subtree.
Parameters
aBookmark — | The root bookmark of a subtree to count. |
The number of open bookmarks in the subtree (not including |
See Also
Since
File: PDProcs.h |
Line: 853 |
PDBookmarkGetFirstChild | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkGetFirstChild(PDBookmark aBookmark)
Gets a bookmark's first child.
Parameters
aBookmark — | IN/OUT The bookmark whose first child is obtained. |
The first child of |
See Also
Since
File: PDProcs.h |
Line: 959 |
PDBookmarkGetFlags | () |
Product availability: All |
Platform availability: All |
ASInt32 PDBookmarkGetFlags(PDBookmark bm)
Retrieves the flags of the specified bookmark.
An exception is thrown if the bookmark is invalid or the existing style is malformed in the PDF file.
Parameters
bm — | The bookmark whose flags are obtained. |
The bookmark's flags. Bit 1 (the least significant bit) indicates an italic font; bit 2 indicates a bold font. |
See Also
Since
File: PDProcs.h |
Line: 7965 |
PDBookmarkGetIndent | () |
Product availability: All |
Platform availability: All |
ASInt32 PDBookmarkGetIndent(PDBookmark aBookmark)
Returns the indentation level of a bookmark in its containing tree.
Parameters
aBookmark — | IN/OUT The bookmark whose indentation level is obtained. |
The indentation level of |
Since
File: PDProcs.h |
Line: 1013 |
PDBookmarkGetLastChild | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkGetLastChild(PDBookmark aBookmark)
Gets a bookmark's last child.
Parameters
aBookmark — | IN/OUT The bookmark whose last child is obtained. |
The last child of |
See Also
Since
File: PDProcs.h |
Line: 973 |
PDBookmarkGetNext | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkGetNext(PDBookmark aBookmark)
Gets a bookmark's next (right) sibling.
Parameters
aBookmark — | The bookmark whose right sibling is obtained. |
The |
See Also
Since
File: PDProcs.h |
Line: 987 |
PDBookmarkGetParent | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkGetParent(PDBookmark aBookmark)
Gets a bookmark's parent bookmark.
Parameters
aBookmark — | The bookmark whose parent is obtained. |
The parent bookmark of |
See Also
Since
File: PDProcs.h |
Line: 944 |
PDBookmarkGetPrev | () |
Product availability: All |
Platform availability: All |
PDBookmark PDBookmarkGetPrev(PDBookmark aBookmark)
Returns a bookmark's previous (left) sibling.
Parameters
aBookmark — | IN/OUT The bookmark whose left sibling is obtained. |
Previous (left) sibling of |
See Also
Since
File: PDProcs.h |
Line: 1002 |
PDBookmarkGetTitle | () |
Product availability: All |
Platform availability: All |
ASInt32 PDBookmarkGetTitle(PDBookmark aBookmark, char* buffer, ASInt32 bufSize)
Parameters
aBookmark — | The bookmark whose title is obtained. |
|
buffer — | (Filled by the method) The buffer into which the title will be written. If |
|
bufSize — | The size of the buffer. |
The number of bytes copied into |
See Also
Since
File: PDProcs.h |
Line: 1044 |
PDBookmarkGetTitleASText | () |
Product availability: All |
Platform availability: All |
void PDBookmarkGetTitleASText(PDBookmark aBookmark, ASText title)
Gets a bookmark's title as an ASText object.
Parameters
aBookmark — | The bookmark whose title is obtained. |
|
title — | (Filled by the method) The text object containing the title. The client must pass a valid ASText object title. The routine does not allocate it. |
See Also
Since
File: PDProcs.h |
Line: 11417 |
PDBookmarkHasChildren | () |
Product availability: All |
Platform availability: All |
ASBool PDBookmarkHasChildren(PDBookmark aBookmark)
Tests whether a bookmark has children.
Parameters
aBookmark — | The bookmark to test. |
|
Since
File: PDProcs.h |
Line: 1080 |
PDBookmarkIsOpen | () |
Product availability: All |
Platform availability: All |
ASBool PDBookmarkIsOpen(PDBookmark aBookmark)
Tests whether a bookmark is open. An open bookmark shows all its children.
Parameters
aBookmark — | The bookmark to test. |
|
See Also
Since
File: PDProcs.h |
Line: 1090 |
PDBookmarkIsValid | () |
Product availability: All |
Platform availability: All |
ASBool PDBookmarkIsValid(PDBookmark aBookmark)
Tests whether a bookmark is valid. This is intended only to ensure that the bookmark has not been deleted, not to ensure that all necessary information is present and valid.
Parameters
aBookmark — | The bookmark whose validity is tested. |
|
See Also
Since
File: PDProcs.h |
Line: 931 |
PDBookmarkRemoveAction | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkRemoveAction(PDBookmark aBookmark)
Removes a bookmark's action.
Parameters
aBookmark — | The bookmark whose action is removed. |
Exceptions
Notifications
Since
File: PDProcs.h |
Line: 7800 |
PDBookmarkSetAction | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkSetAction(PDBookmark aBookmark, PDAction action)
Sets a bookmark's action.
Parameters
aBookmark — | IN/OUT The bookmark whose action is set. |
|
action — | IN/OUT The bookmark's action. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 1127 |
PDBookmarkSetColor | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkSetColor(PDBookmark bm, PDColorValue pdcvIn)
Sets the color of the specified bookmark.
Parameters
bm — | The bookmark whose color is set. |
|
pdcvIn — | The new color. It must be in |
See Also
Exceptions
NULL
or not in DeviceRGB
, the bookmark is invalid or the existing bookmark color is malformed. Notifications
Since
File: PDProcs.h |
Line: 7952 |
PDBookmarkSetFlags | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkSetFlags(PDBookmark bm, ASInt32 nFlags)
Sets the flags of the specified bookmark.
An exception is thrown if the bookmark is invalid or the existing style is malformed in the PDF file.
Parameters
bm — | The bookmark whose flags are set. |
|
nFlags — | The new bookmark flags. Bit 1 (the least significant bit) indicates an italic font; bit 2 indicates a bold font. |
See Also
Notifications
Since
File: PDProcs.h |
Line: 7980 |
PDBookmarkSetOpen | () |
Product availability: All |
Platform availability: All |
void PDBookmarkSetOpen(PDBookmark aBookmark, ASBool isOpen)
Opens or closes a bookmark. An open bookmark shows its children, while a closed bookmark does not.
Parameters
aBookmark — | ||
isOpen — | IN/OUT |
See Also
Notifications
Since
File: PDProcs.h |
Line: 1103 |
PDBookmarkSetTitle | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkSetTitle(PDBookmark aBookmark, const char* str, ASInt32 nBytes)
Parameters
aBookmark — | The bookmark whose title is set. |
|
str — | A read-only string containing the bookmark's new title. The text must be encoded using |
|
nBytes — | The number of bytes of |
See Also
Exceptions
Notifications
Since
File: PDProcs.h |
Line: 1071 |
PDBookmarkSetTitleASText | () |
Product availability: All |
Platform availability: All |
void PDBookmarkSetTitleASText(PDBookmark aBookmark, const ASText title)
Parameters
aBookmark — | The bookmark whose title is set. |
|
title — |
See Also
Exceptions
Notifications
Since
File: PDProcs.h |
Line: 11435 |
PDBookmarkUnlink | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDBookmarkUnlink(PDBookmark aBookmark)
Unlinks a bookmark from the bookmark tree that contains it, and adjusts the tree appropriately.
Parameters
aBookmark — | IN/OUT The bookmark to unlink. |
See Also
Since
File: PDProcs.h |
Line: 918 |
PDBookmarkWasCreated | () |
Product availability: All |
Platform availability: All |
void PDBookmarkWasCreated(PDBookmark bookmark, void* clientData)
A bookmark was created.
Parameters
bookmark — | The bookmark that was created. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1019 |
PDBookmarkWillChange | () |
Product availability: All |
Platform availability: All |
void PDBookmarkWillChange(PDBookmark bookmark, ASAtom key, void* clientData)
A bookmark will be opened or closed, its action will be changed, its title will be changed, or children will be added to it.
Parameters
bookmark — | The bookmark that will be changed. |
|||||||||||||
key — | The
|
|||||||||||||
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1066 |
PDBookmarkWillChangeOpenState | () |
Product availability: All |
Platform availability: All |
void PDBookmarkWillChangeOpenState(PDBookmark bookmark, ASBool open, void* clientData)
A bookmark will be opened or closed.
Parameters
bookmark — | The bookmark that will be opened or closed. |
|
open — | When |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 2261 |
PDBookmarkWillDestroy | () |
Product availability: All |
Platform availability: All |
void PDBookmarkWillDestroy(PDBookmark bookmark, void* clientData)
A bookmark will be destroyed.
Parameters
bookmark — | The bookmark that will be destroyed. |
|
clientData — | A pointer to a block of user-supplied data that was passed when the client registered for this notification using |
See Also
Notifications
File: PIPokes.h |
Line: 1100 |