UXP Toolkit
    Preparing search index...

    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.

    const options = { name: "Web mockup", preset: "Web Large" };
    require('photoshop').app.createDocument(options);

    objects/createoptions

    22.5

    interface DocumentCreateOptions {
        depth?: number;
        fill?: DocumentFill;
        fillColor?: SolidColor;
        height?: number;
        mode?: NewDocumentMode;
        name?: string;
        pixelScaleFactor?: number;
        preset?: string;
        presetJSON?: string;
        profile?: string;
        resolution?: number;
        width?: number;
    }
    Index

    Properties

    depth?: number

    Bit depth

    22.5

    8
    

    [8,16,32]

    Fill color of the document.

    22.5

    fillColor?: SolidColor

    Custom fill color of the document.

    23.0

    height?: number

    Height of image in pixels.

    22.5

    ImageMode class.

    22.5

    name?: string

    The name to give the new document.

    22.5

    pixelScaleFactor?: number

    Pixel Scale Factor.

    22.5

    preset?: string

    Preset.

    22.5

    presetJSON?: string

    JSON Preset, requires JSONified string.

    22.5

    profile?: string

    Color Profile using profile name.

    22.5

    resolution?: number

    Resolution of image.

    22.5

    width?: number

    Width of image in pixels.

    22.5