16 lines
512 B
Python
16 lines
512 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 = [81, 82, 83, 84] # 1-based page numbers
|
|
|
|
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.")
|