DS4SD / docling

Get your documents ready for gen AI
https://ds4sd.github.io/docling
MIT License
10.48k stars 507 forks source link

feat: added support for exporting DocItem to an image when page image is available #379

Closed sh-gupta closed 2 days ago

sh-gupta commented 2 days ago

Updated the minimum docling-core version to 2.4.0 so that DocItem now supports the get_image function. One can now get the image corresponding to any DocItem as long as PdfPipelineOptions.generate_page_images = True.

Deprecated the PdfPipelineOptions.generate_table_image as this option is equivalent to setting PdfPipelineOptions.generate_page_images = True and then using TableItem.get_image.

Issue resolved by this Pull Request: Resolves #299

Checklist:

mergify[bot] commented 2 days ago

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded. Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/ - [X] `title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:`