microsoft / microsoft/markitdown
PdfConverter fails on valid PDF: ValueError not enough values to unpack (expected 4, got 2)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 186k
- Forks
- 13.7k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 49
Description
Summary
markitdown fails to convert a PDF with PdfConverter threw ValueError: not enough values to unpack (expected 4, got 2).
The ffmpeg / pydub warning appears first, but seems unrelated because this is a PDF conversion.
Command
markitdown chapter11.pdf -o chapter11.md
Result:
markitdown._exceptions.FileConversionException: File conversion failed after 1 attempts:
- PdfConverter threw ValueError with message: not enough values to unpack (expected 4, got 2)
Traceback:
markitdown\converters\_pdf_converter.py
pdfminer.high_level.extract_text(...)
ValueError: not enough values to unpack (expected 4, got 2)
Environment
OS: Windows
Python: 3.13.13
markitdown: 0.1.6
pdfplumber: 0.11.9
pdfminer.six: 20251230
<img width="1835" height="798" alt="Image" src="https://github.com/user-attachments/assets/3a8681c3-df11-4cc8-a0f1-7c04131ac84b" />
Contributor guide
No contributing guide indexed for this repository
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 in markitdown/converters/_pdf_converter.py and trace the call to pdfminer.high_level.extract_text using the reported chapter11.pdf reproduction. Check the interaction with the reported pdfminer.six and pdfplumber versions; done means the valid PDF converts to Markdown without the unpacking error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- content
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100