Has anyone found a good converter? In the age of AI, you would think that there would be a foolproof way to do it.
import pdftotext
import sys
with open("test.pdf", "rb") as f:
pdf = pdftotext.PDF(f,physical=True)
for page in pdf:
print(page)
You can convert various types of ebooks.