fix: docling update v2.42.0 (#277)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2025-07-21 08:47:40 +02:00
committed by GitHub
parent 766adb2481
commit 8706706e87
2 changed files with 164 additions and 157 deletions

View File

@@ -40,7 +40,9 @@ def _export_document_as_content(
document = DocumentResponse(filename=conv_res.input.file.name)
if conv_res.status == ConversionStatus.SUCCESS:
new_doc = conv_res.document._make_copy_with_refmode(Path(), image_mode)
new_doc = conv_res.document._make_copy_with_refmode(
Path(), image_mode, page_no=None
)
# Create the different formats
if export_json: