-
-
Notifications
You must be signed in to change notification settings - Fork 449
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: override font for filling #715
Comments
this is interesting. Then I can reproduce, analyze and fix this which I am pretty sure is a bug. Thank you for using pdfcpu 💚 |
https://github.com/maocatooo/pdfcpu_example I'm sorry for keeping you waiting for so long. I have uploaded my sample to GitHub, which includes the incorrect methods I've been using, along with the corresponding PDF and fonts. I've also included a successful example using the pdfcpu test. Please help me identify where the issue is. Thank you once again for your assistance. |
Hello! This sample form was created especially to be filled using UnifontMedium:
if you want to fill this form using pdfcpu you have to have UnifontMedium installed as a pdfcpu user font. What we need is a way to specify an alternative fill font during filling and in the fill.json. Do you think you can provide me with a simple, genuine chinese PDF form. |
Thank you for submitting a possible bug!
Please ensure the following:
os: windows11
pdfcpu: 0.5.0
I am from China, and I have configured the form with Chinese fonts. How should I fill it?
I have tried using api.FillForm to populate it and have set up local fonts through api.InstallFonts. However, I have noticed that regardless of how I change the font in the PDF form, the font read by pdfcpu is always 'SimSun,' which corresponds to the GBK-EUC-H encoding.
The text was updated successfully, but these errors were encountered: