6
请问微软 c# Microsoft.Office.Interop 这个玩意是不是已经废弃了
source link: https://www.v2ex.com/t/816097
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
看到已经好几年没更新了,也不支持 office 2016 请问微软官方有替代品吗? 主要用来 word 转 pdf
5 条回复 • 2021-11-18 10:38:41 +08:00
nuk 22 小时 23 分钟前
支持 2016 的
hdczsf 12 小时 22 分钟前
可以安装 libreoffice,然后使用 soffice 命令转,例如:
soffice --headless -env:UserInstallation=file:///home/office2pdf/profile/1 --safe-mode --minimized --nologo --convert-to pdf /home/office2pdf/src_files/xxxxxxxx.docx --outdir /home/office2pdf/dest_files
soffice --headless -env:UserInstallation=file:///home/office2pdf/profile/1 --safe-mode --minimized --nologo --convert-to pdf /home/office2pdf/src_files/xxxxxxxx.docx --outdir /home/office2pdf/dest_files
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK