13 lines
261 B
Python
13 lines
261 B
Python
import pymupdf
|
|
|
|
def extrahiere_text_als_string(pdf_datei):
|
|
doc = pymupdf.open(pdf_datei)
|
|
a = ""
|
|
for page in doc:
|
|
a += page.get_text()
|
|
return a
|
|
|
|
pdf_datei = 'InformatikModulhandbuch.pdf'
|
|
a = extrahiere_text_als_string(pdf_datei)
|
|
|
|
print(a) |