docling-project / docling-project/docling
pdf converted Powerpoints are missing textboxes and not OCRing images
- Dominant language
- Python
- Stars
- 66.4k
- Forks
- 4.8k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 84
Description
### Bug
When converting .pdf converted Powerpoint files, some images are missing and also if in the page are images, some text will miss as well
...
### Steps to reproduce
```
# Increase recursion limit to handle complex documents
sys.setrecursionlimit(10000)
# Set accelerator options for faster processing
accelerator_options = AcceleratorOptions(
num_threads=2, device=AcceleratorDevice.CPU
)
# Configure pipeline options
pipeline_options = PdfPipelineOptions()
pipeline_options.do_ocr = True
pipeline_options.do_table_structure = True
pipeline_options.table_structure_options.do_cell_matching = True
pipeline_options.accelerator_options = accelerator_options
# Initialize converter with options
converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(
pipeline_options=pipeline_options, backend=PyPdfiumDocumentBackend
)
}
)
converter = DocumentConverter()
doc = converter.convert("./test_ppt_pdf.pdf")
```
Full output: '## Regressziós feladatok\n\n'
[test_ppt_pdf.pdf](https://github.com/user-attachments/files/19680900/test_ppt_pdf.pdf)
### Docling version
...
### Python version
...
Contributor guide
Assessment
This issue has not been assessed yet.