You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
How to add Chinese text?
a.add_annotation(
'text',
Location(x1=10, y1=20, x2=80, y2=30, page=0),
Appearance(content="中文", font_size=10, fill=(0, 0, 0)),
)
a.write('D:\test.pdf')
a error is reported: UnicodeEncodeError: 'latin-1' codec can't encode characters in position 41-44: ordinal not in range(256)
then I change to 'UTF-8', but the pdf output is garbled.


but when I double click the text. The ‘中文’ appear.
How to make Chinese display?