mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
docs: update export table function args
This commit is contained in:
parent
9dbcb3d7d4
commit
ca154ac8ae
3
docs/examples/export_tables.py
vendored
3
docs/examples/export_tables.py
vendored
@ -40,12 +40,11 @@ def main():
|
|||||||
element_html_filename = output_dir / f"{doc_filename}-table-{table_ix + 1}.html"
|
element_html_filename = output_dir / f"{doc_filename}-table-{table_ix + 1}.html"
|
||||||
_log.info(f"Saving HTML table to {element_html_filename}")
|
_log.info(f"Saving HTML table to {element_html_filename}")
|
||||||
with element_html_filename.open("w") as fp:
|
with element_html_filename.open("w") as fp:
|
||||||
fp.write(table.export_to_html(doc=conv_res.document))
|
fp.write(table.export_to_html())
|
||||||
|
|
||||||
end_time = time.time() - start_time
|
end_time = time.time() - start_time
|
||||||
|
|
||||||
_log.info(f"Document converted and tables exported in {end_time:.2f} seconds.")
|
_log.info(f"Document converted and tables exported in {end_time:.2f} seconds.")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user