Widget Font problems #1697
Unanswered
nkmhor
asked this question in
Looking for help
Replies: 2 comments 2 replies
-
The reason should be that PyMuPDF only supports the basic weights of the Base-14 fonts - no bold, no italic. |
Beta Was this translation helpful? Give feedback.
1 reply
-
There is a documentation issue: I forgot to update some parts to make clear, that only Times-Roman, Helvetica and Cour are supported for adding or updating fields - no bold, no italic. Otherwise please send me a reproducer for your problem. I think I do not understand it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are trying to create a PDF form with form (widget) fields that get filled in using PyMuPDF. The PDF form is created in Adobe Acrobat. The python code sets each widget field_value, adds read only to its field_flags, and prepends a fixed string to each field_name. The form designer is picking fonts in Acrobat from the list of 14 base fonts supported in PyMuPDF. PyMuPDF keeps complaining about fonts not being found. For example, if Courier and Courier-Bold are used in the form fields, the Courier fields show up as Courier but the Courier Bold fields show up as Helvetica in Acrobat and in printed output. The Helvetica fields 'turn into' Courier Bold when they are clicked on in Acrobat but revert to Helvetica when focus moves off of them. We want to be able to see Courier Bold in the printed output of the form after the form is completed by the python code. Ideally, we also want to be able to use more than the 14 base fonts. Can anybody explain what is happening and how the form designer can specify fonts for form fields and/or what the software developer can do to preserve the fonts selected by the form designer?
Beta Was this translation helpful? Give feedback.
All reactions