mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 16:40:24 +08:00
c8b200ee7c
This commit refactors and hopefully makes clearer the logic in utils.extract_words. It also adds a new parameter, `extra_attrs`, which allows the user to pass a list of attributes on which to group all characters. For instance, passing `extra_attrs=["fontname", "size"]` will not allow characters with different font names or sizes to become part of the same word. As a benefit, those resulting word dicts will contain `"fontname"` and `"size"` attributes — providing a long-requested feature (cf. issue