Closed SalieriC closed 1 year ago
Hi, I use the standard PDF library supplied with Foundry V10. Can you try opening the PDF with the PDF Pager module disabled, and see if editing the files uses the font configured for each field? If it doesn't work in core Foundry, then perhaps a bug report against Foundry would be a better idea.
Another thing to try is simply dragging the PDF into a browser window (a blank window, not one running Foundry). This will show if the browser's PDF plugin uses the editable field fonts properly.
Tested both, I get the proper font when dragging the PDF to my browser (chromium) but not in FVTT with PDF Pager disabled.
Tested both, I get the proper font when dragging the PDF to my browser (chromium) but not in FVTT with PDF Pager disabled.
Thanks for the test. It definitely seems a bug in core Foundry. It is possible that they aren't using the latest version of the pdf library (the latest version fixes somebody else's issue too).
Apparently it's an issue with the PDFJS library: https://github.com/foundryvtt/foundryvtt/issues/9054
It might be worth testing with a later version of the pdfjs library (if it is fixed in that library).
I have some instructions about how to patch your server to use a later version of pdfjs here: https://github.com/farling42/fvtt-pdf-pager/wiki/Using-a-later-version-of-the-PDFJS-library
Text type form fields can be set to use a specific font when creating those fields. The PDF reader will then try to use the configured font if found. PDF Pager currently doesn't seem to support this, it defaults to a standard font (Arial I think).It would be nice if the PDF would check if the font is configured on the server (a core setting) and use it if found or use the default if not.