-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
fill form using japanese font #779
Comments
Update: By changing the body text font and form font, this error no longer occurs but filled form texts are garbled. |
Hello! Thanks for reporting this. Do you think you can share a small sample PDF file and the font you are using? This would really help. Thank you for using pdfcpu 💚 |
Thank you!
and a patch for my generator issue. |
Thanks!! |
Please describe your use case. Also do you think you can share a conrete sample of what you are doing? If not, what would really help is a short Japanese text for testing with this font. |
The latest commit takes care of the |
I have set up a text field with a Japanese font. When I try to insert text here, the font is recognized, but I get the error
pdfcpu: corrupt fontDic
.After some investigation, the code below cause this error.
pdfcpu/pkg/pdfcpu/font/fontDict.go
Lines 117 to 120 in b89d7b1
I'm not familiar with PDF specifications, but it seems like the problem is accessing 7 instead of 8.
Maybe there is a problem if the subsetted font for the embedded text and the font set on the form are the same?
By the way,
I produce the PDF file with forms with ONLYOFFICE Desktop Editors.
The file contain
DA
parameter with the value like0.000000 0.000000 0.000000 rg \057F2 20.000000 Tf
, so I have to patch parsing code to convert\057
to\
.The text was updated successfully, but these errors were encountered: