Revert the changes in v0.8.1

This commit is contained in:
Vinayak Mehta committed 2020-07-27 17:38:14 +05:30
1 parent fcad5067b9
commit fbe576ffcb
5 files changed
+10 -5

No files matched your search

+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,