pdfparanoia icon indicating copy to clipboard operation
pdfparanoia copied to clipboard

initialization not needed anymore

Open rejuvyesh opened this issue 10 years ago • 8 comments

Was getting this error:

AttributeError: 'PDFDocument' object has no attribute 'initialize'

rejuvyesh avatar Nov 17 '14 16:11 rejuvyesh

Is this in both versions of pdfminer?

kanzure avatar Nov 17 '14 16:11 kanzure

Re: pdfminer discrepancies for python2 and python3, see https://github.com/kanzure/pdfparanoia/issues/44

kanzure avatar Nov 17 '14 17:11 kanzure

pdfminer3k hasn't been updated since my last patch march update to pdfminer removed initialize() http://euske.github.io/pdfminer/index.html#changes to avoid cluttering up the code base with conditionals to manage the two interfaces we should move to https://pypi.python.org/pypi/pdfminer.six/20140915 see #44

fmap avatar Nov 17 '14 17:11 fmap

This was for python2 but even pdfminer-six does not require initialize it seems.

rejuvyesh avatar Nov 18 '14 08:11 rejuvyesh

currently we use pdfminer3k for extraction w. python3 that port hasn't been maintained for a while, and the interfaces of it and pdfminer have diverged e.g. initialize() is required -- so applying this patch would mean breaking 3 support if we haven't already instead of managing two interfaces, we want to move to -six which means a single interface & support for both runtimes but that hasn't happened yet

fmap avatar Nov 18 '14 09:11 fmap

Are there any other changes that pdfminer-six is going to require?

kanzure avatar Nov 21 '14 15:11 kanzure

Is this merge request not needed anymore too?

kanzure avatar Aug 17 '18 11:08 kanzure

I was closing my ancient PRs. Not sure, since I am not using it anymore.

rejuvyesh avatar Aug 17 '18 17:08 rejuvyesh