com.aspose.words

Class RevisionColor

  • java.lang.Object
    • com.aspose.words.RevisionColor
public class RevisionColor 
extends java.lang.Object

Utility class containing constants. Allows to specify color of document revisions.

Example:

Shows how to alter the appearance of revisions in a rendered output document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert a revision, then change the color of all revisions to green,
// and also remove the bar that appears to the left of every revised line.
builder.writeln("This is not a revision.");
doc.startTrackRevisions("John Doe", new Date());
builder.writeln("This is a revision.");
doc.stopTrackRevisions();
builder.writeln("This is not a revision.");

doc.getLayoutOptions().getRevisionOptions().setInsertedTextColor(RevisionColor.BRIGHT_GREEN);
doc.getLayoutOptions().getRevisionOptions().setShowRevisionBars(false);

doc.save(getArtifactsDir() + "Document.LayoutOptionsRevisions.pdf");

Field Summary
static final intAUTO = 0
Default.
static final intBLACK = 1
Represents 000000 color.
static final intBLUE = 2
Represents 2e97d3 color.
static final intBRIGHT_GREEN = 3
Represents 84a35b color.
static final intDARK_BLUE = 4
Represents 376e96 color.
static final intDARK_RED = 5
Represents 881824 color.
static final intDARK_YELLOW = 6
Represents e09a2b color.
static final intGRAY_25 = 7
Represents a0a3a9 color.
static final intGRAY_50 = 8
Represents 50565e color.
static final intGREEN = 9
Represents 2c6234 color.
static final intPINK = 10
Represents ce338f color.
static final intRED = 11
Represents b5082e color.
static final intTEAL = 12
Represents 1b9cab color.
static final intTURQUOISE = 13
Represents 3eafc2 color.
static final intVIOLET = 14
Represents 633277 color.
static final intWHITE = 15
Represents ffffff color.
static final intYELLOW = 16
Represents fad272 color.
static final intNO_HIGHLIGHT = 17
No color is used to highlight revision changes.
static final intBY_AUTHOR = 18
Revisions of each author receive their own color for highlighting from a predfined set of hi-contrast colors.
 

    • Field Detail

      • AUTO = 0

        public static final int AUTO
        Default.
      • BLACK = 1

        public static final int BLACK
        Represents 000000 color.
      • BLUE = 2

        public static final int BLUE
        Represents 2e97d3 color.
      • BRIGHT_GREEN = 3

        public static final int BRIGHT_GREEN
        Represents 84a35b color.
      • DARK_BLUE = 4

        public static final int DARK_BLUE
        Represents 376e96 color.
      • DARK_RED = 5

        public static final int DARK_RED
        Represents 881824 color.
      • DARK_YELLOW = 6

        public static final int DARK_YELLOW
        Represents e09a2b color.
      • GRAY_25 = 7

        public static final int GRAY_25
        Represents a0a3a9 color.
      • GRAY_50 = 8

        public static final int GRAY_50
        Represents 50565e color.
      • GREEN = 9

        public static final int GREEN
        Represents 2c6234 color.
      • PINK = 10

        public static final int PINK
        Represents ce338f color.
      • RED = 11

        public static final int RED
        Represents b5082e color.
      • TEAL = 12

        public static final int TEAL
        Represents 1b9cab color.
      • TURQUOISE = 13

        public static final int TURQUOISE
        Represents 3eafc2 color.
      • VIOLET = 14

        public static final int VIOLET
        Represents 633277 color.
      • WHITE = 15

        public static final int WHITE
        Represents ffffff color.
      • YELLOW = 16

        public static final int YELLOW
        Represents fad272 color.
      • NO_HIGHLIGHT = 17

        public static final int NO_HIGHLIGHT
        No color is used to highlight revision changes.
      • BY_AUTHOR = 18

        public static final int BY_AUTHOR
        Revisions of each author receive their own color for highlighting from a predfined set of hi-contrast colors.