Skip to content

PrintPageMarksOptions

new PrintPageMarksOptions()

The options for printing page marks.


printPageMarksOptions.bleedOffsetRect

The bleed offset rectangle.

Array of 4 numbers


printPageMarksOptions.colorBars

If true, enable printing of color bars.

Default: false

Boolean


printPageMarksOptions.marksOffsetRect

The page marks offset rectangle.

Array of 4 numbers


printPageMarksOptions.pageInfoMarks

If true, page info marks printing is enabled.

Default: false

Boolean


printPageMarksOptions.pageMarksType

The page marks style.

Default: PageMarksType.Roman

PageMarksTypes


printPageMarksOptions.registrationMarks

If true, registration marks should be printed.

Default: false

Boolean


printPageMarksOptions.trimMarks

If true, trim marks should be printed.

Default: false

Boolean


printPageMarksOptions.trimMarksWeight

Stroke weight of trim marks. Minimum: 0.0.

Default: 0.125

Number (double)


printPageMarksOptions.typename

The class name of the object.

String; read-only.


// Creates a PrintPageMarksOptions object, assigns it
// to a PrintOptions object, then prints the current document.
var docRef = activeDocument;
var pageMarkOptions= new PrintPageMarksOptions();
var options = new PrintOptions();
options.pageMarksOptions = pageMarkOptions;
pageMarkOptions.colorBars = true;
pageMarkOptions.pageInfoMarks = true;
pageMarkOptions.registrationMarks = true;
pageMarkOptions.trimMarks = true;
docRef.print(options);