Skip to content

Commit 9fab6b3

Browse files
docs/vars.rst: added more TEXT_* constants.
1 parent 8948cbe commit 9fab6b3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/vars.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,25 @@ For the PyMuPDF programmer, some combination (using Python's `|` operator, or si
259259
260260
2048 -- Ignore built-in differences between text appearing in e.g. PDF viewers versus text stored in the PDF. See :ref:`AdobeManual`, page 615 for background. If set, the **stored** ("replacement" text) is ignored in favor of the displayed text.
261261

262+
.. py:data:: TEXT_COLLECT_STRUCTURE
263+
264+
256 -- Not supported.
265+
266+
.. py:data:: TEXT_ACCURATE_BBOXES
267+
268+
512 -- Calculates exact bboxes for each glyph, instead of relying on the information in the font or PDF document.
269+
270+
.. py:data:: TEXT_COLLECT_VECTORS
271+
272+
1024 -- Not supported.
273+
274+
.. py:data:: TEXT_IGNORE_ACTUALTEXT
275+
276+
2048 -- Do not use ActualText replacement if present.
277+
278+
.. py:data:: TEXT_STEXT_SEGMENT
279+
280+
4096 -- Attempt to segment page into different regions.
262281

263282
The following constants represent the default combinations of the above for text extraction and searching:
264283

0 commit comments

Comments
 (0)