We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When freetext_annotation text contains capital ET, the annotation is not displayed (works with lowercase).
` 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") `
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
1.24.0
Linux
3.10
The text was updated successfully, but these errors were encountered:
A stupid typo - will be fixed in next version.
Sorry, something went wrong.
Fixed in 1.24.1.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: