LdmDocxWriter

Overview

LdmDocxWriter is a class in Aspose.Words FOSS for Python.

Convert an :class:ldm.Document into a DOCX file.

This class declares 3 methods for LdmDocxWriter objects in Python programs. Available methods include: __init__, write, write_to_bytes. Public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package. Properties: options.

Properties

NameTypeAccessDescription
options-ReadGets the options.

Methods

SignatureDescription
__init__(options: Optional[object])Calls init(options) on this LdmDocxWriter instance.
write(doc: ldm.Document, output_path: Union[str, Path])Render doc and write the resulting .docx to disk.
write_to_bytes(doc: ldm.Document) → bytesRender doc and return the .docx as raw bytes.

See Also

 English