Micka33 / Micka33/content-extractor

pdfminer has changed it's API and broken some links

Open
#1 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
36
Forks
11
PR merge metrics
No merged PRs in 30d

Description

The euske / pdfminer repository has changed the location of the PDFDocument class, as noted in the README. This class can be refound easily, but also other things have changed as can be deducted from the following error message. I will not pursue this any further and use pdfminer directly.

```
[..]/pdfsplitter/content_extractor/pdfreader/util/convert.py in ()
2 from pdfminer.pdfparser import PDFParser
3 from pdfminer.pdfdocument import PDFDocument
----> 4 from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter, process_pdf
5 from pdfminer.pdfdevice import PDFDevice, TagExtractor
6 from pdfminer.converter import XMLConverter, HTMLConverter, TextConverter

ImportError: cannot import name process_pdf
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with content_extractor/pdfreader/util/convert.py and compare its pdfminer imports with the API changes noted in the README. Trace the reported process_pdf ImportError and identify the other changed imports; done means the converter module loads without these import failures.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.