docling-project / docling-project/docling

Some page numbers are excluded from document index

Open
#920 1 comment 0 reactions 1 assignee Claimed by @maxmnemonic View on GitHub
bug layout table structure
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug
Some page numbers are excluded from document index.

Example: [ECE37e_-02.pdf](https://github.com/user-attachments/files/18709090/ECE37e_-02.pdf)

![Image](https://github.com/user-attachments/assets/c432726a-0872-4037-a18b-897b9b958dac)

Markdown output:
```markdown
## UN Regulation on uniform provisions concerning the approval of vehicles with regard to Driver Control Assistance Systems

## Contents

3

5

5

8

9

70

| | | Page |
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| | Introduction ............................................................................................................... | |
| 1. | Scope ......................................................................................................................... | |
| 2. | Definitions ................................................................................................................. | |
| 3. | Application for approval ............................................................................................ | 8 |
| 4. | Approval .................................................................................................................... | |
| 5. | General Specifications ............................................................................................... | |
| 6. | Additional Specifications for DCAS Features ........................................................... | 21 |
```

### Steps to reproduce
```shell
docling --debug-visualize-layout ECE37e_-02.pdf
```

### Docling version
```
Docling version: 2.19.0
Docling Core version: 2.17.2
Docling IBM Models version: 3.3.0
Docling Parse version: 3.3.0
Python: cpython-312 (3.12.8)
Platform: macOS-15.3-arm64-arm-64bit
```

### Python version
```
Python 3.12.8
```

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.