RevisionColor enumeration

RevisionColor enumeration

Allows to specify color of document revisions.

Members

NameDescription
AutoDefault.
BlackRepresents 000000 color.
BlueRepresents 2e97d3 color.
BrightGreenRepresents 84a35b color.
ClassicBlueRepresents 0000ff color.
ClassicRedRepresents ff0000 color.
DarkBlueRepresents 376e96 color.
DarkRedRepresents 881824 color.
DarkYellowRepresents e09a2b color.
Gray25Represents a0a3a9 color.
Gray50Represents 50565e color.
GreenRepresents 2c6234 color.
PinkRepresents ce338f color.
RedRepresents b5082e color.
TealRepresents 1b9cab color.
TurquoiseRepresents 3eafc2 color.
VioletRepresents 633277 color.
WhiteRepresents ffffff color.
YellowRepresents fad272 color.
LightPinkRepresents fce6f4 color.
LightBlueRepresents e1f2fa color.
LightYellowRepresents fef4de color.
LightPurpleRepresents eadfef color.
LightOrangeRepresents fce3d0 color.
LightGreenRepresents e9f8ce color.
GrayRepresents efeded color.
NoHighlightNo color is used to highlight revision changes.
ByAuthorRevisions of each author receive their own color for highlighting from a predefined set of hi-contrast colors.

Examples

Shows how to alter the appearance of revisions in a rendered output document.

let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);

// Insert a revision, then change the color of all revisions to green.
builder.writeln("This is not a revision.");
doc.startTrackRevisions("John Doe", Date.now());
expect(doc.layoutOptions.revisionOptions.insertedTextColor).toEqual(aw.Layout.RevisionColor.ByAuthor);
expect(doc.layoutOptions.revisionOptions.showRevisionBars).toEqual(true);
builder.writeln("This is a revision.");
doc.stopTrackRevisions();
builder.writeln("This is not a revision.");

// Remove the bar that appears to the left of every revised line.
doc.layoutOptions.revisionOptions.insertedTextColor = aw.Layout.RevisionColor.BrightGreen;
doc.layoutOptions.revisionOptions.showRevisionBars = false;

doc.save(base.artifactsDir + "Document.LayoutOptionsRevisions.pdf");

See Also