IPrintAreaTemplate Interface

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

example
CustomersCanvas.IframeApi.loadEditor(
    iframe,
    {
        surfaces: [{
            printAreas: [{
                designFile: "stamp",
                safetyLines: [{
                    margin: 5,
                    color: "rgba(0,0,255,255)",
                    altColor: "rgba(255,255,255,0)"
                }]
            }]
        }]
    }
);

Properties

Optional containers

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

Optional cropMarks

cropMarks: ICropMark []

A collection of crop marks defined in the print area.

designFile

designFile: string

Name of the PSD template file, without extension.

Optional designLocation

designLocation: IPointF

Coordinates of the upper-left corner of the design relative to the mockup. For details, refer to the Mockups topic.

Optional hiResOutput

hiResOutput: IHiResOutput

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

Optional name

name: string

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

Optional safetyLines

safetyLines: ISafetyLine []

A collection of safety lines defined in the print area.