@atirtahir3
This is ok in my local Windows operating environment. This error occurs when deploying to a Linux server., do I need other special operations in the linux server
It seems more like a environment related issues rather than a back-end API issue. One of the possible solutions could be to install missing font (Arial) in your development environment (e.g. Linux server).
You didn’t share a list of installed fonts on your server. Please have a look at this link as an example, it will help you to get all the installed fonts.
@atirtahir3
Thank you for your efforts. First of all, our client’s server will not install fonts. Secondly, if the client installs fonts, each client’s installation path is different.Impossible to write in code。
API has included by default only system fonts path. Let’s understand this with an example, for MacOS fonts are in “/System/Library/Fonts”. Arial font is not there. Arial on MacOS can be found at “/Library/Fonts/Microsoft”. That’s why this folder has to be added as fonts source. Otherwise Arial cannot be found and loaded. This is due to how the fonts are organized on MacOS and is not related to API.
So you must find on your Linux system where the Arial font exists. If it is placed somewhere in the system, you have to add the folder to conversionConfig. If it doesn’t exist you may place it in any folder with read permission and provide that folder to conversionConfig.