markup: fix bug in ellipse annotation
This commit is contained in:
@ -144,7 +144,7 @@ def write_square_or_circle(obj, mediabox, path):
|
|||||||
if obj["Subtype"] == LIT('Square'):
|
if obj["Subtype"] == LIT('Square'):
|
||||||
draw.rectangle(obj['Rect'], fill=None, outline='black', width=3)
|
draw.rectangle(obj['Rect'], fill=None, outline='black', width=3)
|
||||||
else:
|
else:
|
||||||
draw.ellipse(*obj['Rect'], fill=None, outline='black', width=3)
|
draw.ellipse(obj['Rect'], fill=None, outline='black', width=3)
|
||||||
|
|
||||||
# account for the difference in coordinate systems
|
# account for the difference in coordinate systems
|
||||||
# between pdf and images.
|
# between pdf and images.
|
||||||
|
|||||||
Reference in New Issue
Block a user