Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation issue - old code in the annotations documentation #3698

Closed
cmyers009 opened this issue Jul 18, 2024 · 1 comment
Closed

documentation issue - old code in the annotations documentation #3698

cmyers009 opened this issue Jul 18, 2024 · 1 comment

Comments

@cmyers009
Copy link

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 cmyers009 changed the title documentation bug - old code in the annotations documentation documentation issue - old code in the annotations documentation Jul 18, 2024
julian-smith-artifex-com added a commit that referenced this issue Aug 19, 2024
Addresses #3698.

Also moved annotation inline example code into docs/samples/ so that it is
checked by tests/test_docs_samples.py.

Note that freetext code appears to create a different third image from the
docs.
julian-smith-artifex-com added a commit that referenced this issue Aug 20, 2024
Addresses #3698.

Also moved annotation inline example code into docs/samples/ so that it is
checked by tests/test_docs_samples.py.

Note that freetext code appears to create a different third image from the
docs.
julian-smith-artifex-com added a commit that referenced this issue Aug 20, 2024
Addresses #3698.

Also moved annotation inline example code into docs/samples/ so that it is
checked by tests/test_docs_samples.py.

Note that freetext code appears to create a different third image from the
docs.
@julian-smith-artifex-com
Copy link
Collaborator

Fixed in 1.24.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants