File size: 208 Bytes
cd41c7b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import pymupdf

doc = pymupdf.open("data/State Machines.pdf")

texts = [page.get_text().encode("utf-8") for page in doc]

print("Done")

# with open("data/State Machines.pdf", "wb", encoding="utf-8") as out: