Skip to content

Commit

Permalink
commented PDFTextExtractionNotAllowed
Browse files Browse the repository at this point in the history
  • Loading branch information
BkrmDahal authored Sep 11, 2019
1 parent d6fd7e7 commit d5ba4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdfminer/pdfpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def get_pages(klass, fp,
# Create a PDF document object that stores the document structure.
doc = PDFDocument(parser, password=password, caching=caching)
# Check if the document allows text extraction. If not, abort.
if check_extractable and not doc.is_extractable:
raise PDFTextExtractionNotAllowed('Text extraction is not allowed: %r' % fp)
# if check_extractable and not doc.is_extractable:
# raise PDFTextExtractionNotAllowed('Text extraction is not allowed: %r' % fp)
# Process each page contained in the document.
for (pageno, page) in enumerate(klass.create_pages(doc)):
if pagenos and (pageno not in pagenos):
Expand Down

0 comments on commit d5ba4bd

Please sign in to comment.