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
I'm using the acroform's fields to fill an existing PDF module. The resulting module looses the original font of the module and gets Helvetica.
field.setText();
The resulting module looses the original font of the module and gets Helvetica.
The field keeps its original font. Also I'm unable to retrieve the used font from any available API.
I use LibreOffice to create a module, assign a different font and create the PDF. Also tried to modify the PDF with acrobat and altering the font again, with no luck. You can see the PDF here: https://github.com/gioppoluca/sheet-export/blob/master/mappings/dnd5e/experimental/latest/5e-model.pdf
1.17.1
Browser
Is there an API to retrieve the original font used?
The text was updated successfully, but these errors were encountered:
I encountered the same issue and found following solution when the font was previously embedded using pdf-lib. See also my comment here.
// Get embedded font using code from above comment field.setText(newText); field.updateAppearances(font);
Sorry, something went wrong.
No branches or pull requests
What were you trying to do?
I'm using the acroform's fields to fill an existing PDF module.
The resulting module looses the original font of the module and gets Helvetica.
How did you attempt to do it?
field.setText();
What actually happened?
The resulting module looses the original font of the module and gets Helvetica.
What did you expect to happen?
The field keeps its original font.
Also I'm unable to retrieve the used font from any available API.
How can we reproduce the issue?
I use LibreOffice to create a module, assign a different font and create the PDF.
Also tried to modify the PDF with acrobat and altering the font again, with no luck.
You can see the PDF here: https://github.com/gioppoluca/sheet-export/blob/master/mappings/dnd5e/experimental/latest/5e-model.pdf
Version
1.17.1
What environment are you running pdf-lib in?
Browser
Checklist
Additional Notes
Is there an API to retrieve the original font used?
The text was updated successfully, but these errors were encountered: