Sg 2.9
PlacedFile
Packages RSS
About
News
Gallery
Scripts
Tutorials
Download
Reference
Forum
Users
License
Twitter

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
    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

Properties

The original size of the placed file, ignoring any transformation matrices applied to it in the document. Read-only.

The original width of the placed file. Read-only.

    Returns:
  • Number

The original height of the placed file. Read-only.

    Returns:
  • Number

The file associated with the placed file item. Read-only.

    Returns:
  • File

Functions

Checks whether the placed file item is an eps.

    Returns:
  • Booleantrue if the placed file item is an eps, false otherwise

Traces the placed file.

    Returns:
  • Tracing — the newly created tracing item

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

AltStyle によって変換されたページ (->オリジナル) /