按照網上的做法ubuntu安裝libgdiplus后又報了另一個錯誤:
System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory
最終搜索到libgdiplus更簡單的解決方案:nuget安裝SkiaSharp.NativeAssets.Linux.NoDependencies包解決
https://stackoverflow.com/questions/53693042/dllnotfoundexception-using-skiasharp-1-68-on-linux
word轉pdf發現有亂碼,查找一番后發現是linux缺少中文字體,執行如下命令
sudo apt-get install fonts-wqy-zenhei
安裝完中文字體 問題解決