MCPcopy
hub / github.com/ArtifexSoftware/pdf2docx / add

Method add

pdf2docx/text/Line.py:124–134  ·  view source on GitHub ↗

Add span list to current Line. Args: span_or_list (Span, Iterable): TextSpan or TextSpan list to add.

(self, span_or_list)

Source from the content-addressed store, hash-verified

122
123
124 def add(self, span_or_list):
125 '''Add span list to current Line.
126
127 Args:
128 span_or_list (Span, Iterable): TextSpan or TextSpan list to add.
129 '''
130 if isinstance(span_or_list, Iterable):
131 for span in span_or_list:
132 self.add_span(span)
133 else:
134 self.add_span(span_or_list)
135
136
137 def add_span(self, span:Element):

Callers 9

to_text_blockMethod · 0.95
intersectsMethod · 0.95
_finalize_by_layoutMethod · 0.45
extractMethod · 0.45
_graph_bfs_from_nodeFunction · 0.45
_report_pairFunction · 0.45
groupMethod · 0.45

Calls 1

add_spanMethod · 0.95

Tested by

no test coverage detected