ISurfaceDefinition

A structure holding settings to create an empty surface.

example
var emptyProduct = {
    surfaces: [
        {
            width: 640,
            height: 480,
            proofImage: {
                fileFormat: "PNG",
                mockupEnabled: false,
                watermarkEnabled: true,
                watermarkText: "PREVIEW",
                watermarkFontSize: 50
            }
        }]
};

Properties

Optional foldingLines

foldingLines: IFoldingLine []

A collection of folding lines defined in the surface (page).

height

height: number

Surface height in pixels.

Optional name

name: string

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

Optional printAreas

printAreas: IPrintAreaDefinition []

A collection of print areas defined in the surface (page).

Optional proofImage

proofImage: IProofImage

Optional spines

spines: ISpine []

A collection of spines defined in the surface (page).

width

width: number

Surface width in pixels.