Skip to main content

Interface: IPrintAreaTemplate

A structure creating a print area based on a PSD/IDML template.

Example

const productDefinition = {
surfaces: `[{
printAreas: [{
designFile: "stamp",
safetyLines: [{
margin: 5,
color: "rgba(0,0,255,1)",
altColor: "rgba(255,255,255,0)"
}]`
}]
}]
);

Extends

Properties

name?

optional name?: string

A name of a surface (a page) in the product.

Remarks

In multipage products, it allows you to use a name mask for product surfaces. If this string contains the {0} placeholder, it will be replaced with a page number, starting from 1. For example, name: "Page {0}" specifies the following page captions in the Bottom toolbar: Page 1, Page 2, and so on.

Inherited from

IBasePrintAreaDefinition.name


safetyLines?

optional safetyLines?: ISafetyLine[]

A collection of safety lines defined in the print area.

Inherited from

IBasePrintAreaDefinition.safetyLines


cropMarks?

optional cropMarks?: ICropMark[]

A collection of crop marks defined in the print area.

Inherited from

IBasePrintAreaDefinition.cropMarks


containers?

optional containers?: IChannelContainerDefinition[]

A collection of texture and spot color containers defined in the print area.

Remarks

For backward compatibility only!

Inherited from

IBasePrintAreaDefinition.containers


bleed?

optional bleed?: IMargin

Margins of the bleed area.

Inherited from

IBasePrintAreaDefinition.bleed


slug?

optional slug?: IMargin

Margins of the slug area. The editor expands the product boundaries to accommodate the slug area.

Inherited from

IBasePrintAreaDefinition.slug


hiResOutput?

optional hiResOutput?: IHiResOutput

Properties of the hi-res output defined in the print area.

Inherited from

IBasePrintAreaDefinition.hiResOutput


designFile

designFile: string

The name of either PSD or IDML file, without extension.


designLocation?

optional designLocation?: IPointF

Coordinates of the upper-left corner of the design relative to the mockup.

Was this page helpful?