From 6d62054ffa7f24f3f54a809771079c4070997d2b Mon Sep 17 00:00:00 2001 From: Jeremy Singer-Vine Date: Fri, 14 Jul 2023 12:01:28 -0400 Subject: [PATCH] Remove vestigial 'font' and 'name' properties --- pdfplumber/page.py | 2 -- tests/test_convert.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pdfplumber/page.py b/pdfplumber/page.py index 9946676e..83f84cb1 100644 --- a/pdfplumber/page.py +++ b/pdfplumber/page.py @@ -51,9 +51,7 @@ "bits", "matrix", "upright", - "font", "fontname", - "name", "text", "imagemask", "colorspace", diff --git a/tests/test_convert.py b/tests/test_convert.py index 96b3a767..0fd03e14 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -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() @@ -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): @@ -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,' )