-
Notifications
You must be signed in to change notification settings - Fork 678
Closed
Description
Hi there.
I ran the slightly modified example code from the documentation (How to Use Non-Standard Encoding) on two platforms.
- Microsoft Windows [Version 10.0.14393]
- Ubuntu 20.04.6 LTS
import fitz
assert 'PyMuPDF 1.23.3:' in fitz.__doc__
doc=fitz.open()
page = doc.new_page()
shape = page.new_shape()
shape.insert_text((50,70), "Hello world!", fontname="HELV", encoding=fitz.TEXT_ENCODING_CYRILLIC)
shape.insert_text((50,90), "Привет world!", fontname="HELV", encoding=fitz.TEXT_ENCODING_CYRILLIC)
shape.insert_text((50,110), "Привет мир!", fontname="HELV", encoding=fitz.TEXT_ENCODING_CYRILLIC)
shape.commit()
doc.save("t.pdf")And I got the same results.
How can I get the correct text in Cyrillic in PDF?
Metadata
Metadata
Assignees
Labels
No labels
