Skip to content

documentation issue - old code in the annotations documentation #3698

@cmyers009

Description

@cmyers009

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions