The OOXML compliance level to use when saving Word documents to OOXML formats (DOCX, DOCM, DOTX, DOTM, etc.). The default value is None, which means the compliance level will be determined automatically: if the original document was in Transitional format it is preserved; otherwise Strict compliance is used.
The base URI used to resolve external resource files’ relative URIs to absolute ones when loading an HTML template document to be assembled and saved to a non‑HTML format. The default value is an empty string.
The path to a folder where external resource files are stored when an assembled document loaded from a non‑HTML format is saved to HTML. The default value is an empty string.
The file format to save an assembled document to. FileFormat.unspecified is the default.
Example
importiofromdatetimeimportdatetimefromdecimalimportDecimalfromgroupdocs.assemblyimportDataSourceInfo,DocumentAssembler,FileFormat,LoadSaveOptionsinvoice={"CustomerName":"Lantern Street Café","Amount":Decimal("522.00"),"Date":datetime(2015,2,3),}withopen("customer-invoice.docx","rb")astemplate,io.BytesIO()asout:assembler=DocumentAssembler()options=LoadSaveOptions(FileFormat.PDF)assembler.assemble_document(template,out,options,DataSourceInfo(invoice,"invoice"))withopen("customer-invoice-from-stream.pdf","wb")asf:f.write(out.getvalue())