Tkinter PDF Text Extractor tutorial for beginners - Python GUI project [Tkinter, PyPDF2]

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 22

  • @rverm1000
    @rverm1000 Год назад

    Excellent i built it. was able to update depreciated methods ok works great. im going to try and expand it to other files like csv.

  • @CodePhiles
    @CodePhiles 2 года назад +3

    Thank you Hala for your wonderful videos and python coding insights

  • @ahassan7270
    @ahassan7270 Год назад +1

    Thank you for your great and easy way in explaining the codes. Really you are GREATE

  • @Zak-l7e
    @Zak-l7e Год назад

    l like your videos, i think they are very instructive and educational, have you thought about making a tutorial series from A to Z for Python, so you don't have to repeat yourself every time you make a video, that way you save ample time doing something else instead to repeating what Pack or grid for example does, or what is tkinter.

  • @ganeshjoshi4426
    @ganeshjoshi4426 Год назад +1

    Thanks you, If you can also mention how to extract images.

  • @aserym462
    @aserym462 10 месяцев назад

    merci hala

  • @orhanbakkal499
    @orhanbakkal499 2 года назад

    I learned a lot from your videos. thank you very much for this. is it hard to make this app with pyqt5? everyone made it with tkinder

    • @codefirstwithhala
      @codefirstwithhala  2 года назад

      It's not hard at all. The code for the PDF extraction is the exact same. The only thing that's different is the GUI code. You would have to use a QFileDialog to open the file and then put the extracted text in a QTextEdit. Let me know if you'd like to see it in a video

    • @orhanbakkal499
      @orhanbakkal499 2 года назад

      @@codefirstwithhala When I try with QFiledialog, it does not read the pdf found on the desktop. I also used the os module. but python gives no response. I would be very happy if you make a video about it.

  • @chodavarapuudaykumar9204
    @chodavarapuudaykumar9204 Год назад

    Good tutorial, hey can we edit this text and again turn into pdf file it really helpful tool if it is possible

  • @awolux
    @awolux 5 месяцев назад

    hi Hala, a superfan here, i need to write my programm and get it in pdf format......help.

  • @saweranabi7786
    @saweranabi7786 Год назад

    💯👍👍

  • @TheWolf1340
    @TheWolf1340 10 месяцев назад

    👌👋👍👍👍

  • @ernestibrahim7532
    @ernestibrahim7532 Год назад

    Hello Hala, Thank you for this wonderful training. Meanwhile I Keep getting this error when run this code (reader.numPages is deprecated and was removed in PyPDF2 3.0.0. Use len(reader.pages) instead.
    ) the program cannot proceed beyond this level

    • @pjk302
      @pjk302 Год назад +2

      Hey Ernest and anyone else who is using PyPDF2 3.0.0 or newer: change the for code to:
      for i in range(len(reader.pages)):
      current_text = reader.pages[i].extract_text()
      print(current_text)
      It should work. Thanks~

    • @ahassan7270
      @ahassan7270 Год назад +1

      @@pjk302 Thank you for your clarification, as when I used this it works fine.

  • @its_code
    @its_code 2 года назад

    😊😍🤩🤩🤩🤩🤩😍😍😍🤩🤩💕

  • @dmskarunaratne80
    @dmskarunaratne80 5 месяцев назад

    correction - current_text=reader.pages[i].extract_text() # not reader.getPage(i) and extractText() - may be due to improvement to pyPDF2 v 3 .#.#

  • @abdotech8995
    @abdotech8995 2 года назад

    choukran hala

  • @saweranabi7786
    @saweranabi7786 Год назад

    Thank You for a good tutorial.
    I would like to ask you a question. I will be thankful if you could help me.
    I want to extract only three small boxes like
    1: Serial number, 2: Default Password and recovery number. With one click.
    I can not solve this to extract all these three boxes combine at one click.
    Please, could you help me?
    Thanks

  • @nubiancenter5918
    @nubiancenter5918 6 месяцев назад

    Thank you sis Hala for your great lessons ,
    but i got some problems:
    1st, got a message says : (range (reader.numPages) had changed to (range(len reader.pages). i made the correction . window opens to choose the pdf file , and shows the pdf file name but the text body of the pdf file is not extracted , i mean nothing showing on the screen , following are error messages:
    =============================================
    File "f:\Tkinter Extract PDF Text\tkinter-pdf-extractor-main\main.py", line 14, in openFile
    for i in range (len(reader.Pages)):
    ^^^^^^^^^^^^
    AttributeError: 'PdfReader' object has no attribute 'Pages'
    =============================================
    File "f:\codefirst.io\Tkinter Extract PDF Text\tkinter-pdf-extractor-main\main.py", line 16, in openFile
    current_text = reader.pages(i).extractText()
    ^^^^^^^^^^^^^^^
    TypeError: '_VirtualList' object is not callable
    =============================================
    (reader.getPage(i)) have been changed to (reader.Page(i))
    but extractText() still makes a problem (TypeError: '_VirtualList' object is not callable)
    =========================
    i hope you can read this and tell us how to fix it
    Any way your explaining of the codes shows that you are a GREATE TEACHER :) . keep up this great job