Merge pull request #175 from camelot-dev/revert-0-8-1

[MRG] Revert the changes in v0.8.1
pull/126/merge v0.8.2
Vinayak Mehta 2020-07-27 17:56:48 +05:30 committed by GitHub
commit 9a5c4b6865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 5 deletions

View File

@ -4,6 +4,11 @@ Release History
master
------
0.8.2 (2020-07-27)
------------------
* Revert the changes in `0.8.1`.
0.8.1 (2020-07-21)
------------------

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
VERSION = (0, 8, 1)
VERSION = (0, 8, 2)
PRERELEASE = None # alpha, beta or rc
REVISION = None

View File

@ -14,7 +14,7 @@ import numpy as np
from pdfminer.pdfparser import PDFParser
from pdfminer.pdfdocument import PDFDocument
from pdfminer.pdfpage import PDFPage
from pdfminer.pdfpage import PDFTextExtractionNotAllowedError
from pdfminer.pdfpage import PDFTextExtractionNotAllowed
from pdfminer.pdfinterp import PDFResourceManager
from pdfminer.pdfinterp import PDFPageInterpreter
from pdfminer.converter import PDFPageAggregator
@ -780,7 +780,7 @@ def get_page_layout(
parser = PDFParser(f)
document = PDFDocument(parser)
if not document.is_extractable:
raise PDFTextExtractionNotAllowedError(f"Text extraction is not allowed: {filename}")
raise PDFTextExtractionNotAllowed(f"Text extraction is not allowed: {filename}")
laparams = LAParams(
char_margin=char_margin,
line_margin=line_margin,

View File

@ -5,6 +5,6 @@ numpy>=1.13.3
opencv-python>=3.4.2.17
openpyxl>=2.5.8
pandas>=0.23.4
pdfminer.six>=20200720
pdfminer.six>=20200726
PyPDF2>=1.26.0
Sphinx>=3.1.2

View File

@ -19,7 +19,7 @@ requires = [
'numpy>=1.13.3',
'openpyxl>=2.5.8',
'pandas>=0.23.4',
'pdfminer.six>=20200720',
'pdfminer.six>=20200726',
'PyPDF2>=1.26.0'
]