docling-project / docling-project/docling

PDF text items being positioned at bottom of document

Open
#2,971 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug
Certain text items throughout my document are being dropped to the bottom of the page

### Steps to reproduce

Reproducible using [this](https://cdn.uconnectlabs.com/wp-content/uploads/sites/74/2024/04/SEAS-MSE-Sample-1-1.pdf) PDF of a sample resume from [UPenn](https://careerservices.upenn.edu/masters-student-resume-samples/), using the default PDF converter like so:

```
from docling.datamodel.base_models import InputFormat
from docling.document_converter import DocumentConverter, PdfFormatOption
from docling.datamodel.pipeline_options import PdfPipelineOptions

file_converter = DocumentConverter(format_options={
InputFormat.PDF: PdfFormatOption(
pipeline_options=PdfPipelineOptions(do_table_structure=False),
),
})

result = file_converter.convert("SEAS-MSE-Sample-1-1.pdf")
print(result.document.export_to_markdown())
```

Text items from the header of the page (name, address, contact info) and one of the cities from the `PROFESSIONAL EXPERIENCE` section are moved to the bottom of the page

### Docling version
Docling version: 2.72.0
Docling Core version: 2.64.0
Docling IBM Models version: 3.11.0
Docling Parse version: 4.7.3
Python: cpython-313 (3.13.5)
Platform: Windows-11-10.0.26200-SP0

### Python version
Python 3.13.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.