PhotoshopFileOptions
PhotoshopFileOptions
Section titled “PhotoshopFileOptions”preferences.photoshopFileOptions
Description
Section titled “Description”Options for opening a Photoshop file, used with the Application.open() method. All properties are optional.
Properties
Section titled “Properties”PhotoshopFileOptions.parent
Section titled “PhotoshopFileOptions.parent”preferences.photoshopFileOptions.parent
Description
Section titled “Description”The parent of this object.
Object; read-only.
PhotoshopFileOptions.pixelAspectRatioCorrection
Section titled “PhotoshopFileOptions.pixelAspectRatioCorrection”preferences.photoshopFileOptions.pixelAspectRatioCorrection
Description
Section titled “Description”If true
, imported images that have a non-square pixel aspect ratio should be adjusted.
Boolean
PhotoshopFileOptions.preserveImageMaps
Section titled “PhotoshopFileOptions.preserveImageMaps”preferences.photoshopFileOptions.preserveImageMaps
Description
Section titled “Description”If true
, image maps should be preserved when document is converted.
Default: true
Boolean
PhotoshopFileOptions.preserveLayers
Section titled “PhotoshopFileOptions.preserveLayers”preferences.photoshopFileOptions.preserveLayers
Description
Section titled “Description”If true
, layers should be preserved when document is converted.
Default: true
Boolean
PhotoshopFileOptions.preserveSlices
Section titled “PhotoshopFileOptions.preserveSlices”preferences.photoshopFileOptions.preserveSlices
Description
Section titled “Description”If true
, slices should be preserved when document is converted.
Default: true
Boolean
PhotoshopFileOptions.typename
Section titled “PhotoshopFileOptions.typename”preferences.photoshopFileOptions.typename
Description
Section titled “Description”The class name of the referenced object.
String; read-only.
Example
Section titled “Example”Opening a Photoshop file
Section titled “Opening a Photoshop file”// Opens a Photoshop file containing layers with// preferences set to preserve layersvar psdOptions = preferences.photoshopFileOptions;psdOptions.preserveLayers = true;psdOptions.pixelAspectRatioCorrection = false;
// open a file using these prefsvar fileRef = File(psdFilePath);if (fileRef != null) { var docRef = open(fileRef, DocumentColorSpace.RGB);}