Pustaka Taratsa
Python: Read PDF

Python: Read PDF

Penulis: Onno Widodo Purbo

Install pip install PyPDF2 Script Cek Jumlah Halaman # importing all the required modules import PyPDF2 # creating an object file = open('example.pdf', 'rb') # creating a pdf reader object fileReader = PyPDF2.PdfFileReader(file) # print the number of pages in pdf file print(fileReader.numPages) Script Print Satu Page # extracting_text.py from PyPDF2 import PdfFileReader def text_extractor(path):