Skip to content

Commit

Permalink
fix: split this from the MCID PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Aug 10, 2023
1 parent 2fa9f9d commit e02857c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions pdfplumber/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
LTPage,
LTTextContainer,
)
from pdfminer.pdfinterp import PDFPageInterpreter
from pdfminer.pdfpage import PDFPage
from pdfminer.psparser import PSLiteral

Expand Down
6 changes: 0 additions & 6 deletions tests/test_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,6 @@ def test_image_structure(self):
pdf = pdfplumber.open(path)
page = pdf.pages[0]
assert page.structure_tree == IMAGESTRUCT
assert page.objects["image"][0]["mcid"] == 2

def test_figure_mcids(self):
path = os.path.join(HERE, "pdfs/figure_structure.pdf")
Expand All @@ -665,8 +664,3 @@ def test_figure_mcids(self):
assert el["type"] == "Figure"
# It has these MCIDS
assert el["mcids"] == [1, 14]
# These are the same MCIDS as lines and curves
line_mcids = set(x["mcid"] for x in page.lines)
curve_mcids = set(x["mcid"] for x in page.curves)
assert line_mcids == {1}
assert curve_mcids == {1, 14}

0 comments on commit e02857c

Please sign in to comment.