InDesign2026
API 21.5.1.73
Collection of PDFComment

PDFComments

A collection of PDF comment objects

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ PDFComment

Returns the PDFComment with the specified index.

index Number The index.
→ PDFComment

Returns any PDFComment in the collection.

→ Number

Displays the number of elements in the PDFComment.

→ PDFComment[]

Returns every PDFComment in the collection.

→ PDFComment

Returns the first PDFComment in the collection.

→ PDFComment

Returns the PDFComment with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ PDFComment

Returns the PDFComment with the specified ID.

id Number The ID.
→ PDFComment

Returns the PDFComment with the specified name.

name String The name.
→ PDFComment[]

Returns the PDFComments within the specified range.

from LongInteger | PDFComment | String The PDFComment, index, or name at the beginning of the range. Can accept: PDFComment, Long Integer or String.
to LongInteger | PDFComment | String The PDFComment, index, or name at the end of the range. Can accept: PDFComment, Long Integer or String.
→ PDFComment

Returns the last PDFComment in the collection.

→ PDFComment

Returns the middle PDFComment in the collection.

→ PDFComment

Returns the PDFComment whose index follows the specified PDFComment in the collection.

obj PDFComment The PDFComment whose index comes before the desired PDFComment.
→ PDFComment

Returns the PDFComment with the index previous to the specified index.

obj PDFComment The index of the PDFComment that follows the desired PDFComment.
→ String

Generates a string which, if executed, will return the PDFComment.

Object of 1

Properties elsewhere that hold a PDFComments.