Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pdfplumber as pp
- with pp.open('file.pdf') as book:
- for page_no, page in enumerate(book.pages, start=1):
- print(f'{page_no = }')
- data = page.extract_text()
- print(data.strip())
- print('-'*45)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement