IPrintAreaDefinition

A structure used to creating a print area.

example
// Defining a product.
var w = 640, h = 480; // in points (1 point = 1/72 inch)

var emptyProduct = {
    surfaces: [
        {
            width: w,
            height: h,
            printAreas: [{
                bounds: {
                    x: 0,
                    y: 0,
                    width: w,
                    height: h
                },
                safetyLines: [{
                    margin: 8.5,
                    color: 'rgba(0,255,0,255)',
                    stepPx: 5,
                    widthPx: 1 
                }]
            }],
        }]
};

Properties

bounds

bounds: IRectangleF

The print area bounds.

Optional hiResOutput

hiResOutput: IHiResOutput

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.