Skip to content

DocumentPreset

documentPreset

A preset document template to use when creating a new document. See Documents.addDocument().


documentPreset.artboardLayout

The layout of artboards in the new document.

Default: GridByRow.

DocumentArtboardLayout


documentPreset.artboardRowsOrCols

The number of rows (for rows layout) or columns (for column layout) of artboards.

Range: 1 to (numArtboards - 1) or 1 for single row or column layouts.

Default: 1

Number (long).


documentPreset.artboardSpacing

The spacing between artboards in the new document.

Default: 20.0

Number (double).


documentPreset.colorMode

The color space for the new document.

DocumentColorSpace


documentPreset.documentBleedLink

The document link for bleed values.

Boolean.


documentPreset.documentBleedOffsetRect

The document bleed offset rectangle.

Rectangle.


documentPreset.height

The height in document points.

Default: 792.0

Number (double).


documentPreset.numArtboards

The number of artboards for the new document.

Range: 1 to 100.

Default: 1.

Number (long).


documentPreset.previewMode

The preview mode for the new document.

DocumentPreviewMode


documentPreset.rasterResolution

The raster resolution for the new document.

DocumentRasterResolution


documentPreset.title

The document title.

String.


documentPreset.transparencyGrid

The transparency grid color for the new document.

DocumentTransparencyGrid


documentPreset.typename

The class name of the referenced object.

String; read-only.


documentPreset.units

The ruler units for the new document.

RulerUnits


documentPreset.width

The width in document points.

Default: 612.0

Number (double).