PrintPageMarksOptions
PrintPageMarksOptions
Section titled “PrintPageMarksOptions”new PrintPageMarksOptions()
Description
Section titled “Description”The options for printing page marks.
Properties
Section titled “Properties”PrintPageMarksOptions.bleedOffsetRect
Section titled “PrintPageMarksOptions.bleedOffsetRect”printPageMarksOptions.bleedOffsetRect
Description
Section titled “Description”The bleed offset rectangle.
Array of 4 numbers
PrintPageMarksOptions.colorBars
Section titled “PrintPageMarksOptions.colorBars”printPageMarksOptions.colorBars
Description
Section titled “Description”If true
, enable printing of color bars.
Default: false
Boolean
PrintPageMarksOptions.marksOffsetRect
Section titled “PrintPageMarksOptions.marksOffsetRect”printPageMarksOptions.marksOffsetRect
Description
Section titled “Description”The page marks offset rectangle.
Array of 4 numbers
PrintPageMarksOptions.pageInfoMarks
Section titled “PrintPageMarksOptions.pageInfoMarks”printPageMarksOptions.pageInfoMarks
Description
Section titled “Description”If true
, page info marks printing is enabled.
Default: false
Boolean
PrintPageMarksOptions.pageMarksType
Section titled “PrintPageMarksOptions.pageMarksType”printPageMarksOptions.pageMarksType
Description
Section titled “Description”The page marks style.
Default: PageMarksType.Roman
PrintPageMarksOptions.registrationMarks
Section titled “PrintPageMarksOptions.registrationMarks”printPageMarksOptions.registrationMarks
Description
Section titled “Description”If true
, registration marks should be printed.
Default: false
Boolean
PrintPageMarksOptions.trimMarks
Section titled “PrintPageMarksOptions.trimMarks”printPageMarksOptions.trimMarks
Description
Section titled “Description”If true
, trim marks should be printed.
Default: false
Boolean
PrintPageMarksOptions.trimMarksWeight
Section titled “PrintPageMarksOptions.trimMarksWeight”printPageMarksOptions.trimMarksWeight
Description
Section titled “Description”Stroke weight of trim marks. Minimum: 0.0.
Default: 0.125
Number (double)
PrintPageMarksOptions.typename
Section titled “PrintPageMarksOptions.typename”printPageMarksOptions.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Example
Section titled “Example”Setting page mark printing options
Section titled “Setting page mark printing options”// 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);