Specifies the style of line endings for line annotations.

from nutrient import PdfLineEndingStyle

Values

NameValueDescription
PdfLineEndingStyle.NONE0No line ending.
PdfLineEndingStyle.SQUARE1A square filled with the annotation’s interior color.
PdfLineEndingStyle.CIRCLE2A circle filled with the annotation’s interior color.
PdfLineEndingStyle.DIAMOND3A diamond shape filled with the annotation’s interior color.
PdfLineEndingStyle.OPEN_ARROW4Two short lines meeting in an acute angle to form an open arrowhead.
PdfLineEndingStyle.CLOSED_ARROW5A triangular closed arrowhead filled with the annotation’s interior color.
PdfLineEndingStyle.BUTT6A short line at the endpoint perpendicular to the line itself.
PdfLineEndingStyle.REVERSE_OPEN_ARROW7Two short lines in the reverse direction from OpenArrow.
PdfLineEndingStyle.REVERSE_CLOSED_ARROW8A triangular closed arrowhead in the reverse direction from ClosedArrow.
PdfLineEndingStyle.SLASH9A short line at the endpoint approximately 30 degrees clockwise from perpendicular.

Usage Example

from nutrient import PdfLineEndingStyle
# Access enum values
value = PdfLineEndingStyle.NONE
print(f"Value: {value}") # Output: Value: PdfLineEndingStyle.NONE
print(f"Integer value: {value.value}") # Output: Integer value: 0