jsvine / pdfplumber

Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.
MIT License
6.57k stars 659 forks source link

读取pdf出现:struct.error: unpack requires a bytes object of length 26 错误 #505

Closed xiaoranli1991 closed 2 years ago

xiaoranli1991 commented 3 years ago

Describe the bug

A clear and concise description of what the bug is.

Code to reproduce the problem

Paste it here, or attach a Python file.

PDF file

Please attach any PDFs necessary to reproduce the problem.

If you need to redact text in a sensitive PDF, you can run it through JoshData/pdf-redactor.

Expected behavior

What did you expect the result should have been?

Actual behavior

What actually happened, instead?

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

Additional context

Add any other context/notes about the problem here.

samkit-jain commented 3 years ago

Hi @xiaoranli1991 Appreciate your interest in the library. Could you please update your issue comment to fill out the missing details?

jsvine commented 2 years ago

Judging by the type of error cited, this appears most likely to be an issue with either a corrupted PDF or with a bug in pdfminer.six (rather than pdfplumber). Closing the issue for now.