Caret Annotation Width Adjustment #4084
Replies: 2 comments 7 replies
-
You can already change the size today by setting the annotation rectangle. This snippet adds 2 carets side by side, the second one has a size of 40 x 40: point = pymupdf.Point(100, 100)
annot = page.add_caret_annot(point) # caret one
point = pymupdf.Point(120, 100)
annot = page.add_caret_annot(point) # caret two
annot.set_rect(annot.rect + (0, 0, 20, 20)) # enlarge rect by 20 in each direction Because this is so trivial to do, we have not added this as an extra functionality. |
Beta Was this translation helpful? Give feedback.
-
the resizing is working when I created pdf doc using "page.set_rotation(0)". It is not working in different document. |
Beta Was this translation helpful? Give feedback.
-
Caret annotation size is currently set as 20 x 20 rectangle size by default. no options to change it. In pdf, when we add it manually size is smaller. please give option to customize its size.
Beta Was this translation helpful? Give feedback.
All reactions