pdf to text using python
by specter - Wednesday June 21, 2023 at 04:39 AM
#1
import os
import pdftotext


pdf_path = input("Enter the path of the pdf file : ")

assert os.path.exists(pdf_path), "this pdf file doesn't exist"

with open(pdf_path, 'rb') as f_r:
    pdf_pages = pdftotext.PDF(f_r)

for i, page in enumerate(pdf_pages):
    print('Page {}'.format(i))
    print(page)
    print('*'*100)
Reply
#2
Oh man!! Python is such an amazing programming language
Reply
#3
Thanks
Reply
#4
Thanks man!

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Suspected Scamming | Contact us via http://breachedmw4otc2lhx7nqe4wyxfhpvy32ooz26opvqkmmrbg73c7ooad.onion/contact if you feel this is incorrect.
Reply
#5
Thats very cool share

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Selling public data.
Reply
#6
there are many modules to do this, will definitely try this too
Reply
#7
Thanks man
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Discord Token Grabber | Private Stealer | Leaked For Free Piplup 355 58,736 6 hours ago
Last Post: gergergergerg5825g651eg
  ❄️HOW TO CREATE COMBOS❄️ F2w 24 2,991 8 hours ago
Last Post: ximmhrss
  Useful links for developers Manfruity 37 2,562 Yesterday, 02:01 PM
Last Post: seoriz111
  ⭐ Sektor7 - All courses (6 in total) ⭐ red_dot 599 38,847 Apr 23, 2026, 09:51 PM
Last Post: cwel321
  WEBSITES FOR FREE INSTAGRAM FOLLOWERS ⭐ UHQ Moneygain 101 10,566 Feb 10, 2026, 03:02 PM
Last Post: onionX232

Forum Jump:


 Users browsing this forum: 1 Guest(s)