Skip to content

PdfConverter fails on valid PDF: ValueError not enough values to unpack (expected 4, got 2) #2071

Description

@eliassrm

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" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions