-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Garbled error when set chinese in outline #516
Comments
@Hopding any suggestions on this? thanks. |
According this, i found a function Lines 203 to 206 in 350c54b
After this, i found pdf-lib/src/core/objects/PDFHexString.ts Lines 17 to 26 in 350c54b
So i resolved this garbled problem by And i saw you are working at #486 which about Thank you anyway. |
Hi @Hopding ,
I just tried to use chinese as outline item title(refer to #127 (comment)), but i got some garbled strings, e.g
Actually in the code, some of them are:
So, i found a pdf which has chinese in outline and print it in the console. They are also garbled strings, such as
þÿ{,\\u00001zà\\u0000 g
. But when i setþÿ{,\\u00001zà\\u0000 g
as a outline item title, i got第一章
in the result pdf's outline which is display in the right way.Is there any suggestion to resole this?
Thank you.
Some informations which may be helpful:
The text was updated successfully, but these errors were encountered: