docling-project / docling-project/docling

Docling text outputs hexadecimal instead of text characters

Open
#1,443 2 comments 1 reaction 0 assignees View on GitHub
bug pdf parsing
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
3d 4h
Merged PRs (30d)
95

Description

### Bug

Getting Hexadecimal characters when using DoclingParseBackend. It does work well if I use PyPdfiumDocumentBackend

```

/X20/X20

/X46/X4F/X52/X20/X45/X41/X53/X45/X20/X4F/X46/X20/X50/X52/X4F/X43/X45/X53/X53/X49/X4E/X47/X2C/X20/X50/X4C/X45/X41/X53/X45/X20/X52/X45/X54/X55/X52/X4E/X20/X54/X48/X49/X53

/X20/X20/X20/X20/X20/X53/X48/X45/X45/X54/X20/X57/X48/X45/X4E/X20/X4D/X41/X49/X4C/X49/X4E/X47/X20/X59/X4F/X55/X52/X20/X51/X55/X4F/X54/X45/X2E

/X20/X41/X64/X64/X69/X74/X69/X6F/X6E/X61/X6C/X20/X70/X72/X6F/X76/X69/X73/X69/X6F/X6E/X73/X20/X61/X6E/X64/X20/X72/X65/X70/X72/X65/X73/X65/X6E/X74/X61/X74/X69/X6F/X6E/X73/X20/X20/X20/X20/X61/X72/X65/X20/X20/X20/X20/X61/X72/X65/X20/X6E/X6F/X74/X20/X61/X74/X74/X61/X63/X68/X65/X64/X2E
```

...

### Steps to reproduce
parse a pdf with docling and getting hexadecimal output rather than text
...

### Docling version
docling>=2.30.0
...

### Python version
3.12
...

[pdf example](https://www.neco.navy.mil/necoattach/N0010425QZC43.pdf)

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported output with DoclingParseBackend using the linked PDF on Python 3.12 and docling>=2.30.0, then compare it with PyPdfiumDocumentBackend. Trace the text extraction path for DoclingParseBackend; done means the PDF produces text characters instead of hexadecimal sequences.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.