public class RevisionOptions
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");
Property Getters/Setters Summary | ||
---|---|---|
int | getCommentColor() | |
void | setCommentColor(intvalue) | |
Allows to specify the color to be used for comments.
Default value is |
||
int | getDeletedTextColor() | |
void | setDeletedTextColor(intvalue) | |
Allows to specify the color to be used for deleted content |
||
int | getDeletedTextEffect() | |
void | setDeletedTextEffect(intvalue) | |
Allows to specify the effect to be applied to the deleted content |
||
int | getInsertedTextColor() | |
void | setInsertedTextColor(intvalue) | |
Allows to specify the color to be used for inserted content |
||
int | getInsertedTextEffect() | |
void | setInsertedTextEffect(intvalue) | |
Allows to specify the effect to be applied to the inserted content |
||
int | getMeasurementUnit() | |
void | setMeasurementUnit(intvalue) | |
Allows to specify the measurement units for revision comments.
Default value is |
||
int | getMovedFromTextColor() | |
void | setMovedFromTextColor(intvalue) | |
Allows to specify the color to be used for areas where content was moved from |
||
int | getMovedFromTextEffect() | |
void | setMovedFromTextEffect(intvalue) | |
Allows to specify the effect to be applied to the areas where content was moved from |
||
int | getMovedToTextColor() | |
void | setMovedToTextColor(intvalue) | |
Allows to specify the color to be used for areas where content was moved to |
||
int | getMovedToTextEffect() | |
void | setMovedToTextEffect(intvalue) | |
Allows to specify the effect to be applied to the areas where content was moved to |
||
int | getRevisedPropertiesColor() | |
void | setRevisedPropertiesColor(intvalue) | |
Allows to specify the color to be used for content with changes of formatting properties |
||
int | getRevisedPropertiesEffect() | |
void | setRevisedPropertiesEffect(intvalue) | |
Allows to specify the effect for content areas with changes of formatting properties |
||
int | getRevisionBarsColor() | |
void | setRevisionBarsColor(intvalue) | |
Allows to specify the color to be used for side bars that identify document lines containing revised information.
Default value is |
||
int | getRevisionBarsPosition() | |
void | setRevisionBarsPosition(intvalue) | |
Gets or sets rendering position of revision bars.
Default value is |
||
float | getRevisionBarsWidth() | |
void | setRevisionBarsWidth(floatvalue) | |
Gets or sets width of revision bars, points. | ||
int | getShowInBalloons() | |
void | setShowInBalloons(intvalue) | |
Allows to specify whether the revisions are rendered in the balloons.
Default value is |
||
boolean | getShowOriginalRevision() | |
void | setShowOriginalRevision(booleanvalue) | |
Allows to specify whether the original text should be shown instead of revised one. Default value is False. | ||
boolean | getShowRevisionBars() | |
void | setShowRevisionBars(booleanvalue) | |
Allows to specify whether revision bars should be rendered near lines containing revised content. Default value is True. | ||
boolean | getShowRevisionMarks() | |
void | setShowRevisionMarks(booleanvalue) | |
Allow to specify whether revision text should be marked with special formatting markup. Default value is True. |
public int getCommentColor() / public void setCommentColor(int value)
public int getDeletedTextColor() / public void setDeletedTextColor(int value)
public int getDeletedTextEffect() / public void setDeletedTextEffect(int value)
public int getInsertedTextColor() / public void setInsertedTextColor(int value)
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");
public int getInsertedTextEffect() / public void setInsertedTextEffect(int value)
public int getMeasurementUnit() / public void setMeasurementUnit(int value)
public int getMovedFromTextColor() / public void setMovedFromTextColor(int value)
public int getMovedFromTextEffect() / public void setMovedFromTextEffect(int value)
public int getMovedToTextColor() / public void setMovedToTextColor(int value)
public int getMovedToTextEffect() / public void setMovedToTextEffect(int value)
public int getRevisedPropertiesColor() / public void setRevisedPropertiesColor(int value)
public int getRevisedPropertiesEffect() / public void setRevisedPropertiesEffect(int value)
public int getRevisionBarsColor() / public void setRevisionBarsColor(int value)
public int getRevisionBarsPosition() / public void setRevisionBarsPosition(int value)
public float getRevisionBarsWidth() / public void setRevisionBarsWidth(float value)
public int getShowInBalloons() / public void setShowInBalloons(int value)
public boolean getShowOriginalRevision() / public void setShowOriginalRevision(boolean value)
public boolean getShowRevisionBars() / public void setShowRevisionBars(boolean value)
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");
public boolean getShowRevisionMarks() / public void setShowRevisionMarks(boolean value)