Extends Item
A PlacedFile represents a file which has been placed in an Illustrator document.
Constructors
Creates a PlacedFile item from a URL. This blocks until the file is loaded or an error occured.
Sample code:
var url = new java.net.URL('http://www.server.com/image.jpg');
var raster = new PlacedFile(url);
- Parameters:
- url: URL — the URL of the file to place
- Returns:
- PlacedFile
- Throws:
- IOException
Creates a PlacedFile from a local file.
Sample code:
var file = new java.io.File('/folder/image.jpg');
var raster = new PlacedFile(file);
- Parameters:
- file: File — the file to be placed
- Returns:
- PlacedFile
Properties
Functions
Checks whether the placed file item is an eps.
- Returns:
- Boolean — true if the placed file item is an eps, false otherwise
Embeds the placed file within the document.
- Parameters:
- askParams: Boolean — specifies whether to show dialog for user input if needed — optional, default: false
- Returns:
- Item — the embedded item
Inheritance
- Item
-
- name
- position
- style
- selected
- fullySelected
- locked
- visible
- clipMask
- targeted
- blendMode
- opacity
- isolated
- knockout
- alphaIsShape
- data
- document
- layer
- parent
- children
- firstChild
- lastChild
- nextSibling
- previousSibling
- index
- bounds
- strokeBounds
- controlBounds
- strokeColor
- strokeWidth
- strokeCap
- strokeJoin
- dashOffset
- dashArray
- miterLimit
- strokeOverprint
- fillColor
- fillOverprint
- windingRule
- resolution
- rasterize(items[, type[, resolution, antialiasing[, width, height]]])
- remove()
- removeChildren()
- copyTo(document)
- copyTo(item)
- clone()
- getKnockout(inherited)
- reverseChildren()
- hitTest(point[, request[, tolerance]])
- hitTest(point, tolerance)
- expand([flags[, steps]])
- rasterize([type[, resolution[, antialiasing[, width, height]]]])
- hasChildren()
- isEditable()
- isValid()
- appendTop(item)
- appendBottom(item)
- moveAbove(item)
- moveBelow(item)
- isAbove(item)
- isBelow(item)
- isParent(item)
- isChild(item)
- isDescendant(item)
- isAncestor(item)
- isGroupedWith(item)
- scale(sx, sy[, center])
- scale(scale[, center])
- translate(t)
- rotate(angle[, center])
- shear(shx, shy)
- transform(matrix[, flags])