docling-project / docling-project/docling

Extracted Formula not correct for PDF

Open
#1,640 1 comment 3 reactions 1 assignee Claimed by @Matteo-Omenetti View on GitHub
bug
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Bug

[The formula in page 7](https://opencores.org/websvn/filedetails?repname=i2c&path=%2Fi2c%2Ftrunk%2Fdoc%2Fi2c_specs.pdf) (3.2.1 Prescale Register) is extracted as below :

)

(

3

)

(

63

1

100 5 KHz ∗

32 MHz

hex

F

dec

prescale

=

=

-

=

### Steps to reproduce
pipeline_options = PdfPipelineOptions()
pipeline_options.generate_picture_images = True
pipeline_options.do_formula_enrichment = True
pipeline_options.do_code_enrichment= True
converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
}
)
result = converter.convert(source,page_range=(7,7))
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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.