PDFComment
PDF comment object
Go to Property Listing | Method Listing
Methods:
addEventListener, changeStatus, extractLabel, getElements, insertLabel, remove, removeEventListener, toSource, toSpecifier
Objects:
Boolean, CommentStatusEnum, CommentTypeEnum, Date, EventListeners, Events, Number, Object, Replies, String,
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The content of the comment |
||
readonly |
The date of the comment |
||
readonly |
The file path of the comment |
||
readonly |
Whether the comment has been applied |
||
readonly |
Whether the comment is an orphan |
||
Array of Ordered array containing pathPointArray:Ordered array containing anchor:2 Reals Array of leftDirection:2 Reals Array of PathOpen:Boolean Array of rightDirection:2 Reals |
readonly |
Path geometry of the comment. Can return: Ordered array containing pathPointArray:Array of Ordered array containing anchor:Array of 2 Reals, leftDirection:Array of 2 Reals, rightDirection:Array of 2 Reals, pathOpen:Boolean. |
|
readonly |
The name of the reviewer who made the comment |
||
readonly |
The status of the comment |
||
readonly |
The type of the comment |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The unique ID of the PDFComment. |
||
readonly |
The index of the PDFComment within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
read/write |
The name of the PDFComment; this is an alias to the PDFComment's label property. |
||
readonly |
The parent of the PDFComment (a Document). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
A collection of reply objects |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined changeStatus (commentStatus:CommentStatusEnum, withProperties:Object)
Change the status of a comment
Parameter |
Type |
Description |
---|---|---|
commentStatus |
The new status of the comment |
|
withProperties |
Initial values for properties of the new PDFComment (Optional) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
PDFComment getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined remove ()
Deletes the PDFComment.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the PDFComment.
String toSpecifier ()
Retrieves the object specifier.
Object of
Event.parent
EventListener.parent
MutationEvent.parent
Reply.parent