Skip to content

Commit 485c28d

Browse files
committed
Add TEXT_FUZZY_VECTORS define.
1 parent 221d15e commit 485c28d

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/vars.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ For the PyMuPDF programmer, some combination (using Python's `|` operator, or si
279279
280280
1048576 -- Delay vector blocks in the extraction slightly to avoid breaking what would otherwise be continuous lines of text.
281281

282+
.. py:data:: TEXT_FUZZY_VECTORS
283+
284+
2097152 -- If this option is set, we 'fuzzily' collect rectangular vectors of the same colour together. This enables us to spot where 'pixels' or 'slices' of vectors are used to create the appearance of characters on the page without exploding the storage and processing time requirements.
285+
282286
The following constants represent the default combinations of the above for text extraction and searching:
283287

284288
.. py:data:: TEXTFLAGS_TEXT

src/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17576,6 +17576,7 @@ def width(self):
1757617576
TEXT_CLIP = mupdf.FZ_STEXT_CLIP
1757717577
if mupdf_version_tuple >= (1, 27, 1):
1757817578
TEXT_LAZY_VECTORS = mupdf.FZ_STEXT_LAZY_VECTORS
17579+
TEXT_FUZZY_VECTORS = mupdf.FZ_STEXT_FUZZY_VECTORS
1757917580

1758017581
TEXT_PARAGRAPH_BREAK = mupdf.FZ_STEXT_PARAGRAPH_BREAK
1758117582
TEXT_TABLE_HUNT = mupdf.FZ_STEXT_TABLE_HUNT

0 commit comments

Comments
 (0)