Adobe InDesign CS2 (4.0) Object Model JS: PDFs

InDesign CS2

Class

PDFs

 A collection of PDF files.

QuickLinks

anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

PDF anyItem ()
Returns any PDF in the collection.

number count ()
Displays the number of elements in the PDF.

Array of PDF everyItem ()
Returns every PDF in the collection.

PDF firstItem ()
Returns the first PDF in the collection.

PDF item (index: any)
Returns the PDF with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

PDF itemByID (id: number)
Returns the PDF with the specified ID.

ParameterTypeDescription
idnumberThe ID.

PDF itemByName (name: string)
Returns the PDF with the specified name.

ParameterTypeDescription
namestringThe name.

Array of PDF itemByRange (from: any, to: any)
Returns the PDFs within the specified range.

ParameterTypeDescription
fromLong
PDF
String
The PDF, index, or name at the beginning of the range. Can accept: PDF, Long or String.
toLong
PDF
String
The PDF, index, or name at the end of the range. Can accept: PDF, Long or String.

PDF lastItem ()
Returns the last PDF in the collection.

PDF middleItem ()
Returns the middle PDF in the collection.

PDF nextItem (obj: PDF)
Returns the PDF whose index follows the specified PDF in the collection.

ParameterTypeDescription
objPDFThe PDF whose index comes before the desired PDF.

PDF previousItem (obj: PDF)
Returns the PDF with the index previous to the specified index.

ParameterTypeDescription
objPDFThe index of the PDF that follows the desired PDF.

string toSource ()
Generates a string which, if executed, will return the PDF.

Element of

Button.pdfs

GraphicLine.pdfs

Group.pdfs

Oval.pdfs

PageItem.pdfs

Polygon.pdfs

Rectangle.pdfs

State.pdfs

XMLElement.pdfs

Used in:

Asset Library.store (using: Array of any)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index