| Layer | PD_Layer |
| Object | PDNumTree |
A PDNumTree is used to map integers to arbitrary Cos objects just as a Cos dictionary is used to map Cos names to Cos objects. However, a number tree can have many more entries than a Cos dictionary.
| Typedef | ||
|---|---|---|
| PDNumTree
An object that points to the root node of a number tree inside a PDF file. A number tree is used to map integers to arbitrary Cos objects just as a Cos dictionary is used to map Cos names to Cos objects. However, a number tree can have many more entries than a Cos dictionary can.
|
||
| Method | ||
|---|---|---|
|
Enumerates the entries in the tree.
|
||
|
Compares two number trees to determine if they are the same object.
|
||
|
PDNumTree PDNumTreeFromCosObj(CosObj obj)
Creates a type cast of the CosObj to a number tree.
|
||
|
Retrieves an object from the number tree.
|
||
|
CosObj PDNumTreeGetCosObj(PDNumTree theTree)
Creates a type cast of the number tree to a CosObj.
|
||
|
ASBool PDNumTreeIsValid(PDNumTree theTree)
Validates whether a PDNumTree is a CosDict Cos object.
|
||
|
PDNumTree PDNumTreeNew(PDDoc pdDoc)
Creates a new number tree in the document.
|
||
|
An entry was added to a name tree.
|
||
|
An entry was removed from a name tree.
|
||
|
Puts a new entry in the number tree. If an entry with this number is already in the tree, it is replaced.
|
||
|
Removes the specified object from the tree. It does nothing if no object with that number exists.
|
||
| PDNumTree |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
typedef OPAQUE_64_BITS PDNumTree;
An object that points to the root node of a number tree inside a PDF file. A number tree is used to map integers to arbitrary Cos objects just as a Cos dictionary is used to map Cos names to Cos objects. However, a number tree can have many more entries than a Cos dictionary can.
See Also
| File: PDExpT.h |
| Line: 5453 |
| PDNumTreeEnum | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
void PDNumTreeEnum(PDNumTree theTree, CosObjEnumProc proc, void* clientData)
Enumerates the entries in the tree.
Parameters
theTree — | IN/OUT A number tree. |
|
proc — | IN/OUT A procedure to call once for each number destination pair in |
|
clientData — | IN/OUT Data used by the enumeration procedure. |
See Also
Since
| File: PDProcs.h |
| Line: 7645 |
| PDNumTreeEqual | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Compares two number trees to determine if they are the same object.
Parameters
tree1 — | A number tree. |
|
tree2 — | Another number tree. |
|
See Also
Since
| File: PDProcs.h |
| Line: 7586 |
| PDNumTreeFromCosObj | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Creates a type cast of the CosObj to a number tree.
Parameters
obj — | IN/OUT The CosObj for which a PDNumTree representation is desired. |
A PDNumTree representation of |
See Also
Since
| File: PDProcs.h |
| Line: 7551 |
| PDNumTreeGet | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Retrieves an object from the number tree.
Parameters
theTree — | The PDNumTree requested. |
|
key — | The number of the entry to retrieve. |
|
value — | (Filled by the method) The value associated with |
|
See Also
Since
| File: PDProcs.h |
| Line: 7615 |
| PDNumTreeGetCosObj | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Creates a type cast of the number tree to a CosObj.
Parameters
theTree — | IN/OUT The PDNumTree for which a CosObj representation is desired. |
A CosObj representation of |
See Also
Since
| File: PDProcs.h |
| Line: 7563 |
| PDNumTreeIsValid | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Validates whether a PDNumTree is a CosDict Cos object.
Parameters
theTree — | The PDNumTree whose validity is desired. |
|
See Also
Since
| File: PDProcs.h |
| Line: 7574 |
| PDNumTreeNew | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Creates a new number tree in the document.
Parameters
pdDoc — | The document for which a new number tree is desired. |
The newly created number tree, or a PDNumTreeIsValid() should be called to determine if the number tree returned by PDNumTreeNew() is usable. |
See Also
Since
| File: PDProcs.h |
| Line: 7539 |
| PDNumTreeNumAdded | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
An entry was added to a name tree.
Parameters
numTree — | IN/OUT The name tree to which an entry was added. |
|
key — | IN/OUT The key for the entry. |
|
value — | IN/OUT The Cos object for the value associated with key. |
|
clientData — | IN/OUT A pointer to a block of user-supplied data that was passed in by the calling application when this notification was registered for using |
See Also
Notifications
| File: PIPokes.h |
| Line: 1770 |
| PDNumTreeNumRemoved | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
An entry was removed from a name tree.
Parameters
numTree — | IN/OUT The name tree from which an entry was removed. |
|
key — | IN/OUT The key for the entry. |
|
clientData — | IN/OUT A pointer to a block of user-supplied data that was passed in by the calling application when this notification was registered for using |
See Also
Notifications
| File: PIPokes.h |
| Line: 1783 |
| PDNumTreePut | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Puts a new entry in the number tree. If an entry with this number is already in the tree, it is replaced.
Parameters
theTree — | IN/OUT The number tree for which a new entry is added |
|
key — | IN/OUT The number of the entry. |
|
value — | IN/OUT The value associated with |
See Also
Notifications
Since
| File: PDProcs.h |
| Line: 7601 |
| PDNumTreeRemove | () |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Removes the specified object from the tree. It does nothing if no object with that number exists.
Parameters
theTree — | IN/OUT The number tree from which an entry is removed. |
|
key — | IN/OUT The number of the entry to remove. |
See Also
Notifications
Since
| File: PDProcs.h |
| Line: 7629 |