DocumentMarkupMode
Specifies the modes for converting document markups, including how changes and comments are rendered.
This enumeration provides options for controlling the visibility of markups, such as tracked changes and comments, in a document. Each mode determines whether changes are shown, hidden, or treated as accepted or rejected, and whether comments are converted to annotations.
from nutrient import DocumentMarkupModeValues
| Name | Value | Description |
|---|---|---|
DocumentMarkupMode.ALL_MARKUP | 0 | Show all the markups in different colors, underlined/struck through. Comments are converted to annotations. This is the default behavior. |
DocumentMarkupMode.SIMPLE_MARKUP | 1 | Show the document as if all the changes were accepted. Comments are converted to annotations. |
DocumentMarkupMode.NO_MARKUP | 2 | Show the document as if all the changes were accepted. Comments are NOT converted to annotations. |
DocumentMarkupMode.ORIGINAL | 3 | Show the document as if none of the changes were made (= as if all changes were rejected) Comments are NOT converted to annotations. |
Usage Example
from nutrient import DocumentMarkupMode
# Access enum valuesvalue = DocumentMarkupMode.ALL_MARKUPprint(f"Value: {value}") # Output: Value: DocumentMarkupMode.ALL_MARKUPprint(f"Integer value: {value.value}") # Output: Integer value: 0