使用Python win32com和Python-docx编写DOCM文件
Win32COM仅在Windows操作系统上工作,并且可以处理DOCM文件。 但是,Python-Docx在所有操作系统上都可以使用,并且无法处理DOCM文件。
我想使用Linux服务器上的Python-docx文件处理DOCM文件。是否可以?
Win32com only works on Windows operating systems and can process docm files.
However, python-docx works on all operating systems and cannot process docm files.
I want to process the docm file using the python-docx file on the Linux server. Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用旨在处理Linux上
docm
文件的任何第三方组件。对于docx
您可以考虑使用打开XML SDK 现在支持.NET标准,该标准由.NET Core在Linux的各种发行版上支持。You can use any third-party components designed for dealing with
docm
files on Linux. Fordocx
file you may consider using the Open XML SDK as it now supports .NET Standard which is supported by .NET Core on various distros of Linux.