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

Text containing capital 'ET' not appearing as annotation #3306

Closed
milicanikolic opened this issue Mar 25, 2024 · 2 comments
Closed

Text containing capital 'ET' not appearing as annotation #3306

milicanikolic opened this issue Mar 25, 2024 · 2 comments
Labels
bug fix developed release schedule to be determined

Comments

@milicanikolic
Copy link

Description of the bug

When freetext_annotation text contains capital ET, the annotation is not displayed (works with lowercase).

How to reproduce the bug

Non-working example

`
import fitz

doc = fitz.open()
page = doc.new_page()
width = page.rect.width
height = page.rect.height

footer_rect = fitz.Rect(0, 0, width, 50)
footer_rect.y0 = height - footer_rect.height
footer_rect.y1 = height

page.add_freetext_annot(footer_rect, "11:30AM ET", fontsize=10, fontname="Times-Roman", text_color=(0, 0, 1), align=0)
doc.save("ET_test_example.pdf")
`

Working example

`
import fitz

doc = fitz.open()
page = doc.new_page()
width = page.rect.width
height = page.rect.height

footer_rect = fitz.Rect(0, 0, width, 50)
footer_rect.y0 = height - footer_rect.height
footer_rect.y1 = height

page.add_freetext_annot(footer_rect, "11:30AM et", fontsize=10, fontname="Times-Roman", text_color=(0, 0, 1), align=0)
doc.save("et_lowercase_test_example.pdf")
`

ET_test_example.pdf
et_lowercase_test_example.pdf

PyMuPDF version

1.24.0

Operating system

Linux

Python version

3.10

@JorjMcKie
Copy link
Collaborator

A stupid typo - will be fixed in next version.

@JorjMcKie JorjMcKie added bug fix developed release schedule to be determined labels Mar 26, 2024
@julian-smith-artifex-com
Copy link
Collaborator

Fixed in 1.24.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix developed release schedule to be determined
Projects
None yet
Development

No branches or pull requests

3 participants