MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / JM_append_word

Function JM_append_word

src/__init__.py:18735–18751  ·  view source on GitHub ↗

Functions for wordlist output

(lines, buff, wbbox, block_n, line_n, word_n)

Source from the content-addressed store, hash-verified

18733
18734
18735def JM_append_word(lines, buff, wbbox, block_n, line_n, word_n):
18736 '''
18737 Functions for wordlist output
18738 '''
18739 s = JM_EscapeStrFromBuffer(buff)
18740 litem = (
18741 wbbox.x0,
18742 wbbox.y0,
18743 wbbox.x1,
18744 wbbox.y1,
18745 s,
18746 block_n,
18747 line_n,
18748 word_n,
18749 )
18750 lines.append(litem)
18751 return word_n + 1, mupdf.FzRect(mupdf.FzRect.Fixed_EMPTY) # word counter
18752
18753
18754def JM_add_layer_config( pdf, name, creator, ON):

Callers 1

extractWORDSMethod · 0.85

Calls 2

JM_EscapeStrFromBufferFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…