MsgWriter
개요
MsgWriter은 Aspose.Email FOSS의 Python용 클래스입니다.
CFB 기반 .msg 페이로드에 MsgDocument을 쓰는 시리얼라이저.
이 클래스는 Python 프로그램에서 MsgWriter 객체를 다루기 위한 메서드 2개를 제공합니다. 사용 가능한 메서드: to_bytes, write_file. 모든 public 멤버는 Aspose.Email FOSS for Python 패키지를 설치한 후 Python 애플리케이션에서 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
to_bytes(document: MsgDocument) → bytes | MsgDocument를 직렬화하여 Outlook .msg 파일을 나타내는 바이트 객체로 변환합니다. |
| `write_file(document: MsgDocument, path: Path | str)` |