evopdf - 无法在服务器 linux 上打开 Word 文档
问题描述
使用 EvoWordToPDF 运行演示将 docx 转换为 pdf 时遇到错误:
INFO 2021-11-16 09:15:42,760 [97 ] MyProject.DanhMuc.Demo.DemoAppService
- Path file doc: /qldt/wwwroot/Upload/Demo/PhieuThamDinhMau.docx
INFO 2021-11-16 09:15:42,760 [97 ] MyProject.DanhMuc.Demo.DemoAppService
- Path file pdf: /qldt/wwwroot/Upload/Demo/PhieuThamDinhMau.pdf
ERROR 2021-11-16 09:15:42,830 [97 ] MyProject.DanhMuc.Demo.DemoAppService - EvoWordToPdf.WordConvertException: Could not open the Word document
at EvoWordToPdf.WordToPdfConverter.ᜀ(Stream A_0, String A_1, Int32 A_2, Int32 A_3)
at EvoWordToPdf.WordToPdfConverter.ᜀ(Stream A_0, Stream A_1, String A_2, Int32 A_3, Int32 A_4)
at EvoWordToPdf.WordToPdfConverter.ᜁ(Stream A_0, String A_1, Int32 A_2, Int32 A_3)
at EvoWordToPdf.WordToPdfConverter.ConvertWordFile(String wordFilePath, String password, Int32 startPageIndex, Int32 endPageIndex)
at EvoWordToPdf.WordToPdfConverter.ConvertWordFile(String wordFilePath)
at MyProject.DanhMuc.Demo.DemoAppService.WordToPDF(String fileName) in /builds/qldt/qldt-web/aspnet-core/src/MyProject.Application/DanhMuc/Demo/DemoAppService.cs:line 410
在本地,它运行完美。我不明白为什么?帮我!
解决方案
推荐阅读
- powershell - Powershell 添加 reg 密钥
- python - 从 SQL 语法到 SQLAlchemy 语法
- c# - 直接引用 Razor 类库程序集
- c# - C# - 在另一个方法中实现抽象或接口方法
- docker - Dockerfile 错误:standard_init_linux.go:207:exec 用户进程导致“没有这样的文件或目录
- ruby-on-rails - 找不到 redis_cache_store 的缓存存储适配器(无法加载此类文件 -- active_support/cache/redis_cache_store)
- xaml - 如何让我的 Xamarin xaml 设计器工作?
- python - 从不同的进程对接 PyQt Windows
- ios - iOS:应用启动后,UIApplication.sharedApplication.keyWindow.rootViewController==nil
- react-native - 后退按钮处理程序没有被调用本机反应