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

Method function2

src/__init__.py:15965–15980  ·  view source on GitHub ↗
( position)

Source from the content-addressed store, hash-verified

15963 raise ValueError("callback 'function' must be a callable with exactly one argument")
15964
15965 def function2( position):
15966 class Position2:
15967 pass
15968 position2 = Position2()
15969 position2.depth = position.depth
15970 position2.heading = position.heading
15971 position2.id = position.id
15972 position2.rect = JM_py_from_rect(position.rect)
15973 position2.text = position.text
15974 position2.open_close = position.open_close
15975 position2.rect_num = position.rectangle_num
15976 position2.href = position.href
15977 if args:
15978 for k, v in args.items():
15979 setattr( position2, k, v)
15980 function( position2)
15981 mupdf.fz_story_positions( self.this, function2)
15982
15983 def place( self, where, flags=0):

Callers

nothing calls this directly

Calls 2

Position2Class · 0.85
JM_py_from_rectFunction · 0.85

Tested by

no test coverage detected