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
Enviroment: nodejsv20.12.1
I'm getting garbled Chinese when using textField, But it's normal in doc.text()
textField
doc.text()
I've also tried Japanese and Russian and they are all garbled
import { jsPDF } from "jspdf"; import fs from "fs"; const doc = new jsPDF(); var SimSun = fs.readFileSync('./SimSun.ttf', { encoding: 'latin1', }); doc.addFileToVFS('simsun.ttf', SimSun); doc.addFont('simsun.ttf', 'simsun', 'normal'); doc.setFont('simsun'); const textField = new doc.AcroForm.TextField() textField.Rect = [20, 20, 50, 50] textField.value = '你好 世界! hello world!'; textField.fontStyle = 'normal'; doc.text(20, 20, '你好 世界! hello world!'); doc.addField(textField) doc.save("hello.pdf")
#2677
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
Sorry, something went wrong.
@luckymore It seems the issue is persisting, can I work on this?
@DynamiteC yes! sure! please!
No branches or pull requests
Enviroment: nodejsv20.12.1
I'm getting garbled Chinese when using
textField
, But it's normal indoc.text()
I've also tried Japanese and Russian and they are all garbled
#2677
The text was updated successfully, but these errors were encountered: