-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Form field text values too large #7367
Comments
I have a similiar problem, but I do not yet know what to do about it: I can still reproduce this in version 2.3.171. |
The problem with the file here is that the appearance streams are missing. /NeedAppearances is set so the viewer should generate them. In the field "f1_13(0)" the /DA (default appearance) is "/Helvetica-Bold 9 Tf 0 g". However the font "Helvetica-Bold" does not exist in in the Acroform default resources of the PDF (I suspect that the PDF was poorly merged from a cover page and the original SS4 form). So PDF.js makes some decision about what font to use, and from the screeenshot this looks like Comic Sans 🤣 @hveit make sure that the software that generates / fills the PDF also creates the appearance streams of the fields. If you're not sure what is going on, create a new issue here. |
@THausherr thanks for the explanation. |
@hveit I'll answer there. It is somewhat different, in that PDF the font is available in the AcroForm default resources. |
Link to PDF file (or attach file here): detect-form-fields.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? Text is correct size:
What went wrong? Text is very large:
PdfBug console output:
The text was updated successfully, but these errors were encountered: