MsgWriter
Overview
MsgWriter 是Python的Aspose.Email FOSS中的一个类.
编写一个MsgDocument到CFB支持的.msg有效载荷中的串行器.
这个类提供了在Python程序中使用MsgWriter 对象的2种方法. 有的方法包括: to_bytes, write_file. 在安装Python包的Aspose.Email FOSS后,所有公众成员都可以访问任何 Python 应用程序.
Methods
| Signature | Description |
|---|---|
to_bytes(document: MsgDocument) → bytes | 将MsgDocument 串行成一个字节对象,表示Outlook.msg文件 |
| `write_file(document: MsgDocument, path: Path | str)` |