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 DocumentMarkupMode

Values

NameValueDescription
DocumentMarkupMode.ALL_MARKUP0Show all the markups in different colors, underlined/struck through. Comments are converted to annotations. This is the default behavior.
DocumentMarkupMode.SIMPLE_MARKUP1Show the document as if all the changes were accepted. Comments are converted to annotations.
DocumentMarkupMode.NO_MARKUP2Show the document as if all the changes were accepted. Comments are NOT converted to annotations.
DocumentMarkupMode.ORIGINAL3Show 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 values
value = DocumentMarkupMode.ALL_MARKUP
print(f"Value: {value}") # Output: Value: DocumentMarkupMode.ALL_MARKUP
print(f"Integer value: {value.value}") # Output: Integer value: 0