Layer | PD_Layer |
Object | PDThread |
A thread corresponds to an article in Acrobat's user interface, and contains an ordered sequence of rectangles that bound the article. Each rectangle is called a bead. See Section 8.3.2, Articles, in the PDF Reference for more information on articles and beads in PDF.
Threads can be created interactively by the user or programmatically. They are internally represented by a circular linked list of PDBead objects.
Typedef | ||
---|---|---|
PDThread
An article in the Acrobat viewer's user interface. It contains an ordered sequence of rectangles that bound the article. Each rectangle is called a bead. Threads can be created either interactively, by the user, or programmatically.
|
Method | ||
---|---|---|
void PDThreadDestroy(PDThread thread)
Deletes an article thread from its document. You must call PDDocRemoveThread() to remove the thread from the document (if it was added to one using PDDocAddThread()) before calling PDThreadDestroy().
|
||
void PDThreadDidChange(PDThread thread, void* clientData)
A thread was changed.
|
||
PDThread PDThreadFromCosObj(CosObj obj)
Gets the thread object corresponding to the specified Cos object. This method does not copy the object, but is instead the logical equivalent of a type cast.
|
||
CosObj PDThreadGetCosObj(PDThread thread)
Gets the Cos object corresponding to a thread. This method does not copy the object, but is instead the logical equivalent of a type cast.
|
||
PDBead PDThreadGetFirstBead(PDThread thread)
Gets an article thread's first bead.
|
||
Gets the specified article thread's info.
|
||
Gets the specified article thread's info as an ASText object.
|
||
ASBool PDThreadIsValid(PDThread thread)
Tests whether a thread is valid. This is intended only to ensure that the thread has not been deleted, not to ensure that all necessary information is present and valid.
|
||
PDThread PDThreadNew(PDDoc aDocP)
Creates a new article thread. Use PDDocAddThread() to add the thread to a document.
|
||
Sets an article thread's first bead.
|
||
Sets the specified article thread's info.
|
||
Sets the specified article thread's info.
|
PDThread |
Product availability: All |
Platform availability: All |
typedef OPAQUE_64_BITS PDThread;
An article in the Acrobat viewer's user interface. It contains an ordered sequence of rectangles that bound the article. Each rectangle is called a bead. Threads can be created either interactively, by the user, or programmatically.
See Also
File: PDExpT.h |
Line: 3139 |
PDThreadDestroy | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDThreadDestroy(PDThread thread)
Deletes an article thread from its document. You must call PDDocRemoveThread() to remove the thread from the document (if it was added to one using PDDocAddThread()) before calling PDThreadDestroy().
Parameters
thread — | IN/OUT The thread to destroy. |
See Also
Since
File: PDProcs.h |
Line: 3994 |
PDThreadDidChange | () |
Product availability: All |
Platform availability: All |
void PDThreadDidChange(PDThread thread, void* clientData)
A thread was changed.
Parameters
thread — | The thread that changed. |
|
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: 1005 |
PDThreadFromCosObj | () |
Product availability: All |
Platform availability: All |
Gets the thread object corresponding to the specified Cos object. This method does not copy the object, but is instead the logical equivalent of a type cast.
Parameters
obj — | The dictionary Cos object for the thread. |
The PDThread object for the thread. |
See Also
Exceptions
Since
File: PDProcs.h |
Line: 4105 |
PDThreadGetCosObj | () |
Product availability: All |
Platform availability: All |
Gets the Cos object corresponding to a thread. This method does not copy the object, but is instead the logical equivalent of a type cast.
Parameters
thread — | IN/OUT The thread whose Cos object is to obtained. |
The dictionary Cos object for the thread. The contents of the dictionary can be enumerated using CosObjEnum(). It returns a |
See Also
Since
File: PDProcs.h |
Line: 4092 |
PDThreadGetFirstBead | () |
Product availability: All |
Platform availability: All |
Gets an article thread's first bead.
Parameters
thread — | IN/OUT The thread whose first bead is obtained. |
The thread's first bead, or a |
See Also
Since
File: PDProcs.h |
Line: 4008 |
PDThreadGetInfo | () |
Product availability: All |
Platform availability: All |
Gets the specified article thread's info.
Parameters
thread — | IN/OUT The thread whose thread info is obtained. |
|
infoKey — | IN/OUT The key whose value is obtained. |
|
buffer — | IN/OUT (Filled by the method) The value associated with |
|
bufSize — | IN/OUT The maximum number of characters that |
The number of characters written into |
See Also
Since
File: PDProcs.h |
Line: 4044 |
PDThreadGetInfoASText | () |
Product availability: All |
Platform availability: All |
Gets the specified article thread's info as an ASText object.
Parameters
thread — | The thread whose thread info is being obtained. |
|
infoKey — | The key whose value is being obtained. |
|
value — | (Filled by the method) The text object containing the value associated with |
See Also
Since
File: PDProcs.h |
Line: 11555 |
PDThreadIsValid | () |
Product availability: All |
Platform availability: All |
Tests whether a thread is valid. This is intended only to ensure that the thread has not been deleted, not to ensure that all necessary information is present and valid.
Parameters
thread — | The thread whose validity is tested. |
|
Since
File: PDProcs.h |
Line: 4075 |
PDThreadNew | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Creates a new article thread. Use PDDocAddThread() to add the thread to a document.
Parameters
aDocP — | The document in which the thread is created. |
The newly created thread. |
See Also
Since
File: PDProcs.h |
Line: 3980 |
PDThreadSetFirstBead | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets an article thread's first bead.
Parameters
thread — | IN/OUT The thread whose first bead is set. |
|
newFirstBead — | IN/OUT The bead to use as the first in thread. |
See Also
Since
File: PDProcs.h |
Line: 4020 |
PDThreadSetInfo | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
Sets the specified article thread's info.
Parameters
thread — | IN/OUT The thread whose thread info is set. |
|
infoKey — | IN/OUT The key whose value is set. |
|
buffer — | IN/OUT The value to set. |
|
bufSize — | IN/OUT The number of characters in |
See Also
Notifications
Since
File: PDProcs.h |
Line: 4065 |
PDThreadSetInfoASText | () |
Product availability: All |
Platform availability: All |
Sets the specified article thread's info.
Parameters
thread — | The thread whose thread info is being set. |
|
infoKey — | The key whose value is being set. |
|
value — |
See Also
Since
File: PDProcs.h |
Line: 11570 |