LdmDocxWriter

Overview

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

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

This class provides 3 methods for working with LdmDocxWriter objects in Python programs. Available methods include: __init__, write, write_to_bytes. All 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])
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