MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / insert_text

Method insert_text

src/__init__.py:2419–2426  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

2417 mupdf.fz_dom_insert_before( self.this, node.this)
2418
2419 def insert_text(self, text):
2420 lines = text.splitlines()
2421 line_count = len(lines)
2422 for i, line in enumerate(lines):
2423 self.append_child(self.create_text_node(line))
2424 if i < line_count - 1:
2425 self.append_child(self.create_element("br"))
2426 return self
2427
2428 @property
2429 def is_text(self):

Callers 15

insert_pageMethod · 0.45
insert_textMethod · 0.45
test_spikesFunction · 0.45
test_delimitersFunction · 0.45
test_deletionFunction · 0.45
test_extendable_textpageFunction · 0.45
test_add_ink_annotFunction · 0.45
test_2506Function · 0.45
bbox_countFunction · 0.45
test_scientific_numbersFunction · 0.45
test_4319Function · 0.45
test_4415Function · 0.45

Calls 3

append_childMethod · 0.95
create_text_nodeMethod · 0.95
create_elementMethod · 0.95

Tested by 14

test_spikesFunction · 0.36
test_delimitersFunction · 0.36
test_deletionFunction · 0.36
test_extendable_textpageFunction · 0.36
test_add_ink_annotFunction · 0.36
test_2506Function · 0.36
bbox_countFunction · 0.36
test_scientific_numbersFunction · 0.36
test_4319Function · 0.36
test_4415Function · 0.36
test_4590Function · 0.36
test_encryptionFunction · 0.36