MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / unicode_text_lines_from_pdf

Function unicode_text_lines_from_pdf

src/textcode/analysis.py:190–196  ·  view source on GitHub ↗

Return an iterable over unicode text lines extracted from a pdf file at location.

(location)

Source from the content-addressed store, hash-verified

188
189
190def unicode_text_lines_from_pdf(location):
191 """
192 Return an iterable over unicode text lines extracted from a pdf file at
193 location.
194 """
195 for line in pdf.get_text_lines(location):
196 yield as_unicode(line)
197
198
199def break_numbered_unicode_text_lines(

Callers 1

numbered_text_linesFunction · 0.85

Calls 1

as_unicodeFunction · 0.70

Tested by

no test coverage detected