Skip to main content

Interface: ICropMark

A structure holding settings for a crop mark.

Remarks

For details, see the Cropping marks topic.

Example

const product = {
surfaces: [{
printAreas: [{
designFile: "envelope",
designLocation: { X: 4.1, Y: 4.1 },
cropMarks: `[{
margin: 8.5,
color: "cmyk(0, 1, 1, 0, 1)",
widthPx: 1,
length: 6,
fontSize: 4,
leftNotes: [{
text: "Page information"
}]`
}]
}]
}]
};

Properties

name?

optional name?: string

The name of the crop mark.


margin?

optional margin?: number | IMarginHV

The distance between a crop mark and the surface bounds, in points. The default value is 10.


color?

optional color?: string

The color of crop marks, in the CSS color format. The default value is black, "rgba(0,0,0,1)".


widthPx?

optional widthPx?: number

The line width, in pixels. The default value is 1.


length?

optional length?: number | IMarginHV

The length of the crop mark, in points. The default value is 8.


texts?

optional texts?: ICropMarkText[]

The page information.

Was this page helpful?