MCPcopy Index your code
hub / github.com/clips/pattern / render

Method render

pattern/web/pdf/converter.py:181–188  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

179
180 def receive_layout(self, ltpage):
181 def render(item):
182 if isinstance(item, LTContainer):
183 for child in item:
184 render(child)
185 elif isinstance(item, LTText):
186 self.write_text(item.get_text())
187 if isinstance(item, LTTextBox):
188 self.write_text('\n')
189 if self.showpageno:
190 self.write_text('Page %s\n' % ltpage.pageid)
191 render(ltpage)

Callers

nothing calls this directly

Calls 3

write_textMethod · 0.95
renderFunction · 0.50
get_textMethod · 0.45

Tested by

no test coverage detected