so I am converting text into speech for that using pdfplumber for extracting text but getting error
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: DLL load failed while importing _rust: The specified procedure could not be found.
also I asked chat-gpt it tell install rust. Do I really need download that.
import pdfplumber as pdfplumber
import tkinter as tk
def extract_text_from_pdf(pdf_path):
text = ""
with pdfplumber.open(pdf_path) as pdf:
for page in pdf.pages:
text += page.extract_text()
return text
t = extract_text_from_pdf("game_doc.pdf")
print(t)
New contributor
Bangi Musaif is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.