16 lines
524 B
Python
16 lines
524 B
Python
import pypdf
|
|
|
|
pdf_name = "PERANCANGAN SISTEM REKOMENDASI KAMERA PADA PERSEWAAN KAMERA DENGAN BERBASIS WEBSITE MENGUNAKAN ALGORITMA TOPSIS (Revisi 6 fix bismillah).pdf"
|
|
reader = pypdf.PdfReader(pdf_name)
|
|
|
|
pages_to_extract = list(range(81, 92)) # 1-based page numbers 81 to 91
|
|
|
|
for p in pages_to_extract:
|
|
idx = p - 1
|
|
print(f"\n================ PAGE {p} ================")
|
|
if idx < len(reader.pages):
|
|
text = reader.pages[idx].extract_text()
|
|
print(text)
|
|
else:
|
|
print("Page out of range.")
|