Skip to content

Commit

Permalink
Remove vestigial 'font' and 'name' properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvine committed Jul 14, 2023
1 parent 97ca4b0 commit 6d62054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pdfplumber/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
"bits",
"matrix",
"upright",
"font",
"fontname",
"name",
"text",
"imagemask",
"colorspace",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_csv(self):
assert c.split("\r\n")[9] == (
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
'18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"'
',,DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
',DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
)

io = StringIO()
Expand Down Expand Up @@ -125,7 +125,7 @@ def test_cli_csv(self):
assert res.decode("utf-8").split("\r\n")[9] == (
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
'18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"'
',,DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
',DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
)

def test_cli_csv_exclude(self):
Expand All @@ -149,7 +149,7 @@ def test_cli_csv_exclude(self):

assert res.decode("utf-8").split("\r\n")[9] == (
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
"18.0,12.996,,,,,,TimesNewRomanPSMT,,"
"18.0,12.996,,,,,,TimesNewRomanPSMT,"
',,"(0, 0, 0)",,18.0,,,,,Y,,1,'
)

Expand Down

0 comments on commit 6d62054

Please sign in to comment.