Revert the changes in v0.8.1

This commit is contained in:
Vinayak Mehta
2020-07-27 17:38:14 +05:30
parent fcad5067b9
commit fbe576ffcb
5 changed files with 10 additions and 5 deletions
+1 -1
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
+2 -2
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,