update example

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2025-04-14 07:15:36 +02:00
parent beab8ce3ba
commit 4a6ea8d4af

View File

@ -40,7 +40,7 @@ def main():
element_html_filename = output_dir / f"{doc_filename}-table-{table_ix+1}.html"
_log.info(f"Saving HTML table to {element_html_filename}")
with element_html_filename.open("w") as fp:
fp.write(table.export_to_html())
fp.write(table.export_to_html(doc=conv_res.document))
end_time = time.time() - start_time