MCPcopy Create free account
hub / github.com/mindee/doctr / render

Method render

doctr/io/elements.py:617–619  ·  view source on GitHub ↗

Renders the full text of the element

(self, page_break: str = "\n\n\n\n")

Source from the content-addressed store, hash-verified

615 super().__init__(pages=pages)
616
617 def render(self, page_break: str = "\n\n\n\n") -> str:
618 """Renders the full text of the element"""
619 return page_break.join(p.render() for p in self.pages)
620
621 def show(self, **kwargs) -> None:
622 """Overlay the result on a given image"""

Callers 1

test_documentFunction · 0.95

Calls 1

renderMethod · 0.45

Tested by 1

test_documentFunction · 0.76