Skip to content

Commit 469e365

Browse files
authored
Add comment on line end symbols
1 parent 36872df commit 469e365

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/new-annots.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def print_descr(rect, annot):
7575

7676
r = r2 + displ
7777
annot = page.addPolylineAnnot([r.bl, r.tr, r.br, r.tl])
78-
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond)
78+
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond) # a no-op currently
7979
annot.setColors(colors)
8080
annot.updateImage()
8181
print_descr(annot.rect, annot)
@@ -90,7 +90,7 @@ def print_descr(rect, annot):
9090

9191
r+= displ
9292
annot = page.addLineAnnot(r.tr, r.bl)
93-
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond)
93+
annot.setLineEnds(fitz.ANNOT_LE_Circle, fitz.ANNOT_LE_Diamond) # a no-op currently
9494
annot.setColors(colors)
9595
annot.updateImage()
9696
print_descr(annot.rect, annot)
@@ -117,4 +117,4 @@ def print_descr(rect, annot):
117117
print("added 'FileAttachment'")
118118

119119
doc.save("new-annots.pdf", clean=True)
120-
doc.close()
120+
doc.close()

0 commit comments

Comments
 (0)