Skip to content

Commit

Permalink
TST: Adding test for #1370 (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz authored Sep 29, 2022
1 parent f3b6d0e commit 9d870a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,10 @@ def test_ascii_charset():
name = "ascii charset.pdf"
reader = PdfReader(BytesIO(get_pdf_from_url(url, name=name)))
assert "/a" not in reader.pages[0].extract_text()


def test_iss1370():
url = "https://github.com/py-pdf/PyPDF2/files/9667138/cmap1370.pdf"
name = "cmap1370.pdf"
reader = PdfReader(BytesIO(get_pdf_from_url(url, name=name)))
reader.pages[0].extract_text()

0 comments on commit 9d870a2

Please sign in to comment.