docling-project / docling-project/docling-core
add a merge function for DoclingDocuments
Open
- Dominant language
- HTML
- Stars
- 282
- Forks
- 214
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 21
Description
When parsing multiple pages separately, I would like to merge them all into one document.
A generalization of this idea is to be able to merge arbitrary sets of Docling documents.
Could either be as helper:
```
helper.merge_docs([doc1: DoclingDoc, doc2:DoclingDoc,...]) -> DoclingDoc
```
or as method returning success as bool:
```
doc1.merge_into_doc([doc2,...]) -> bool
```
Contributor guide
Assessment
This issue has not been assessed yet.