PyMuPDF icon indicating copy to clipboard operation
PyMuPDF copied to clipboard

documentation issue - old code in the annotations documentation

Open cmyers009 opened this issue 1 year ago • 0 comments

Description of the bug

Code in documentation is outdated.

How to reproduce the bug

How to Use Ink Annotations section: page.addInkAnnot function outdated. should be page.add_ink_annot

How to Use FreeText section:

add 3 annots, modify the last one somewhat

a1 = page.add_freetext_annot(r1, t, color=red) a2 = page.add_freetext_annot(r2, t, fontname="Ti", color=blue) a3 = page.add_freetext_annot(r3, t, fontname="Co", color=blue, rotate=90)

color does not work in this way.

PyMuPDF version

1.24.7

Operating system

Windows

Python version

3.11

cmyers009 avatar Jul 18 '24 17:07 cmyers009