Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 92
exportDocument
(exportIn
[, exportAs]
[, options])
File
ExportType
ExportOptionsIllustrator
—or—
ExportOptionsSaveForWeb
Exports the paths in the document to an
Illustrator file, or exports the document to
a file with Web or device viewing
optimizations.
This is equivalent to choosing File >
Export > Paths To Illustrator, or File >
Save For Web and Devices.
flatten
()
Flattens all layers in the document.
flipCanvas
(direction)
Direction
Flips the image within the canvas in the
specified direction.
importAnnotations
(file)
File
Imports annotations into the document.
mergeVisibleLayers
()
Flattens all visible layers in the document.
paste
([intoSelection])
boolean
ArtLayer
Pastes the contents of the clipboard into
the document. If the optional argument is
set to
true and a selection is active, the
contents are pasted into the selection.
print
([sourceSpace]
[, printSpace]
[, intent]
[blackPointCompensation])
SourceSpaceType
string
Intent
boolean
Prints the document.
printSpace specifies the color space for
the printer. Valid values are
nothing (that
is, the same as the source); or
Working
RGB
, Working CMYK, Working Gray, Lab
Color
(meaning one of the working color
spaces or Lab color); or a string specifying
a specific colorspace (default is same as
source).
printOneCopy
()
Print one copy of the document.
rasterizeAllLayers
()
Rasterizes all layers.
recordMeasurements
([source]
[, dataPoints])
MeasurementSource
array of string
Record measurements of document.
resizeCanvas
([width]
[, height]
[, anchor])
UnitValue
UnitValue
AnchorPosition
Changes the size of the canvas to display
more or less of the image but does not
change the image size. See resizeImage
.
resizeImage
([width]
[, height]
[, resolution]
[, resampleMethod])
UnitValue
UnitValue
number
ResampleMethod
Changes the size of the image.
Method Parameter type Returns What it does (Continued)