Python
from PyPDF2 import PdfReader

# Path to the uploaded PDF
file_path = “/mnt/data/RMO No. 36-2016 Prescribes the policies and procedures in the decentralization of recording and repo_17ca52f6”

# Read PDF and extract text
reader = PdfReader(file_path)
text = “”
for page in reader.pages:
text += page.extract_text() + “\n”

text[:5000] # Preview first 5000 characters to ensure content is readable


Leave a Comment

Your email address will not be published. Required fields are marked *