mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 08:34:23 +08:00
Remove vestigial 'font' and 'name' properties
This commit is contained in:
@@ -51,9 +51,7 @@ ALL_ATTRS = set(
|
|||||||
"bits",
|
"bits",
|
||||||
"matrix",
|
"matrix",
|
||||||
"upright",
|
"upright",
|
||||||
"font",
|
|
||||||
"fontname",
|
"fontname",
|
||||||
"name",
|
|
||||||
"text",
|
"text",
|
||||||
"imagemask",
|
"imagemask",
|
||||||
"colorspace",
|
"colorspace",
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class Test(unittest.TestCase):
|
|||||||
assert c.split("\r\n")[9] == (
|
assert c.split("\r\n")[9] == (
|
||||||
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
|
"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)"'
|
'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()
|
io = StringIO()
|
||||||
@@ -125,7 +125,7 @@ class Test(unittest.TestCase):
|
|||||||
assert res.decode("utf-8").split("\r\n")[9] == (
|
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,"
|
"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)"'
|
'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):
|
def test_cli_csv_exclude(self):
|
||||||
@@ -149,7 +149,7 @@ class Test(unittest.TestCase):
|
|||||||
|
|
||||||
assert res.decode("utf-8").split("\r\n")[9] == (
|
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,"
|
"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,'
|
',,"(0, 0, 0)",,18.0,,,,,Y,,1,'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user