Unstructured-IO / Unstructured-IO/unstructured
bug/pdf-extraction-bug
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 15.5k
- Forks
- 1.3k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 13
Description
Describe the bug
While partition_pdf or partition(text.. ) this method is working for docx, txt however for some pdfs it is not parsing well especially academic papers.
To Reproduce
elements = self._partition(**self._build_partition_kwargs(loaded))
Expected behavior
Should return a simple text inside the elements list with some metadata.
Screenshots
**Environment Info**
name = "unstructured"
version = "0.17.2"
description = "A library that prepares raw documents for downstream ML tasks."
optional = false
python-versions = ">=3.9.0"
groups = ["main"]
files = [
{file = "unstructured-0.17.2-py3-none-any.whl", hash = ..
{file = "unstructured-0.17.2.tar.gz", hash = ..
Additional context
I will upload the pdf example that is not working.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the linked 2025.findings-naacl.114.pdf and inspect the partition_pdf path around self._partition(**self._build_partition_kwargs(loaded)). Compare the returned elements with the expected text and metadata, then add a regression test once the parsing failure is isolated.
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
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100