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

Function page_simple

src/__main__.py:555–564  ·  view source on GitHub ↗
(page, textout, GRID, fontsize, noformfeed, skip_empty, flags)

Source from the content-addressed store, hash-verified

553
554
555def page_simple(page, textout, GRID, fontsize, noformfeed, skip_empty, flags):
556 eop = b"\n" if noformfeed else bytes([12])
557 text = page.get_text("text", flags=flags)
558 if not text:
559 if not skip_empty:
560 textout.write(eop) # write formfeed
561 return
562 textout.write(text.encode("utf8", errors="surrogatepass"))
563 textout.write(eop)
564 return
565
566
567def page_blocksort(page, textout, GRID, fontsize, noformfeed, skip_empty, flags):

Callers

nothing calls this directly

Calls 2

get_textMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…