Edit in GitHubLog an issue

DocumentCreateOptions

An object literal can be constructed with any of the following properties and passed to Photoshop.createDocument. As a type, DocumentCreateOptions can be used in Typescript development.

Copied to your clipboard
const options = { name: "Web mockup", preset: "Web Large" };
require('photoshop').app.createDocument(options);
NameTypeDefaultRangeMin VersionDescription
depth
number
8
[8,16,32]
22.5
Bit depth
fill
-
-
22.5
Fill color of the document.
fillColor
-
-
23.0
Custom fill color of the document.
height
number
-
-
22.5
Height of image in pixels.
mode
-
-
22.5
ImageMode class.
name
string
-
-
22.5
The name to give the new document.
pixelScaleFactor
number
-
-
22.5
Pixel Scale Factor.
preset
string
-
-
22.5
Preset.
presetJSON
string
-
-
22.5
JSON Preset, requires JSONified string.
profile
string
-
-
22.5
Color Profile using profile name.
resolution
number
-
-
22.5
Resolution of image.
width
number
-
-
22.5
Width of image in pixels.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.