Edit in GitHubLog an issue

PlaceGun

Represents the place gun.

Instance

Read Only

Boolean loaded

Whether the place gun is currently loaded with content for placing.


Read Only

Boolean isValid

Returns true if the object specifier resolves to valid objects.


Read Only

Document parent

The parent of the PlaceGun (a Document).


Read Only

Snippets snippets

A collection of IDML snippets.


Read Only

Events events

A collection of events.


Read Only

EventListeners eventListeners

A collection of event listeners.


Read Only

PageItems pageItems

The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type.


Read Only

TextFrames textFrames

A collection of text frames.


Read Only

Rectangles rectangles

A collection of rectangles.


Read Only

SplineItems splineItems

The spline items collection.


Read Only

Ovals ovals

A collection of ellipses.


Read Only

GraphicLines graphicLines

A collection of graphic lines.


Read Only

Polygons polygons

A collection of polygons.


Read Only

Groups groups

A collection of groups.


Read Only

Buttons buttons

A collection of buttons.


Read Only

FormFields formFields

A collection of form fields.


Read Only

MultiStateObjects multiStateObjects

A collection of multi-state objects.


Read Only

EPSTexts epstexts

EPSTexts


Read Only

Images images

A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF).


Read Only

Graphics graphics

A collection of imported graphics in any graphic file format (vector, metafile, or bitmap).


Read Only

EPSs epss

A collection of EPS files.


Read Only

WMFs wmfs

A collection of WMF graphics.


Read Only

PICTs picts

A collection of PICT graphics.


Read Only

PDFs pdfs

A collection of PDF files.


Read Only

ImportedPages importedPages

Imported InDesign pages.


Read Only

CheckBoxes checkBoxes

A collection of checkboxes.


Read Only

ComboBoxes comboBoxes

A collection of comboboxes.


Read Only

ListBoxes listBoxes

A collection of listboxes.


Read Only

RadioButtons radioButtons

A collection of radio buttons.


Read Only

TextBoxes textBoxes

A collection of text boxes.


Read Only

SignatureFields signatureFields

A collection of signature fields.


Read Only

SVGs svgs

A collection of SVG files.


Object properties

A property that allows setting of several properties at the same time.

Methods

abortPlaceGun()

Delete the contents of the place gun.


rotate( RotationDirection direction )

Rotate the contents of the place gun.

Parameters

TypeNameDescription
RotationDirection
direction
Which direction to rotate the contents (Optional)

loadPlaceGun( Mixed fileName, Boolean showingOptions, Object withProperties )

Load the place gun with one or more files.

Parameters

TypeNameDescription
Mixed
fileName
One or more files to place. Can accept: File or Array of Files.
Boolean
showingOptions
Whether to display the import options dialog (Optional)
Object
withProperties
Initial values for properties of the placed object(s) (Optional)

String toSource()

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


PlaceGun getElements()

Resolves the object specifier, creating an array of object references.


String toSpecifier()

Retrieves the object specifier.


EventListener addEventListener( String eventType, Mixed handler, Boolean captures )

Adds an event listener.

Parameters

TypeNameDescription
String
eventType
The event type.
Mixed
handler
The event handler. Can accept: File or JavaScript Function.
Boolean
captures
This parameter is obsolete. (Optional)

Boolean removeEventListener( String eventType, Mixed handler, Boolean captures )

Removes the event listener.

Parameters

TypeNameDescription
String
eventType
The registered event type.
Mixed
handler
The registered event handler. Can accept: File or JavaScript Function.
Boolean
captures
This parameter is obsolete. (Optional)
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.