docling-project / docling-project/docling

Extracted list but the sequence and result incorrect in PDF

Open
#1,652 1 comment 0 reactions 0 assignees View on GitHub
bug triage/close-stale
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
3d 4h
Merged PRs (30d)
95

Description

### Bug

The extracted result of t[he features list in page 4 ](https://opencores.org/websvn/filedetails?repname=i2c&path=%2Fi2c%2Ftrunk%2Fdoc%2Fi2c_specs.pdf)listed below

The sequence of the list is nor correct and the "I2C standard" extracted as "I C standard 2".

- · Multi Master Operation
- · Compatible with Philips **I C standard 2**
- · Software programmable clock frequency
- · Software programmable acknowledge bit
- · Clock Stretching and Wait state generation
- · Interrupt or bit-polling driven byte-by-byte data-transfers
- · Start/Stop/Repeated Start/Acknowledge generation
- · Arbitration lost interrupt, with automatic transfer cancelation
- · Start/Stop/Repeated Start detection
- · Supports 7 and 10bit addressing mode
- · Bus busy detection
- · Operates from a wide range of input clock frequencies
- · Fully synthesizable
- · Static synchronous design

The original one listed below

• Compatible with Philips I2C standard
• Multi Master Operation
• Software programmable clock frequency
• Clock Stretching and Wait state generation
• Software programmable acknowledge bit
• Interrupt or bit-polling driven byte-by-byte data-transfers
• Arbitration lost interrupt, with automatic transfer cancelation
• Start/Stop/Repeated Start/Acknowledge generation
• Start/Stop/Repeated Start detection
• Bus busy detection
• Supports 7 and 10bit addressing mode
• Operates from a wide range of input clock frequencies
• Static synchronous design
• Fully synthesizable

### Steps to reproduce
pipeline_options = PdfPipelineOptions()
pipeline_options.generate_picture_images = True
converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
}
)
result = converter.convert(source,page_range=(4,4))
print(result.document.export_to_markdown(page_no=7, image_mode=ImageRefMode.EMBEDDED))

### Docling version
2.30.0

#### Python version
3.11.5

Contributor guide

Open the contributing guide

Research direction

Start with the reported PdfPipelineOptions, DocumentConverter, convert, and export_to_markdown entry points and run the supplied page-range reproduction against the linked PDF. Trace how the page-4 list is extracted and ordered, then verify that the exported Markdown preserves the source order and keeps “I2C standard” intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.