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.
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
@@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.
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
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~
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
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
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.
Thank you Hala for your wonderful videos and python coding insights
You're very welcome! Thanks for watching
Thank you for your great and easy way in explaining the codes. Really you are GREATE
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.
Thanks you, If you can also mention how to extract images.
merci hala
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
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
@@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.
Good tutorial, hey can we edit this text and again turn into pdf file it really helpful tool if it is possible
hi Hala, a superfan here, i need to write my programm and get it in pdf format......help.
💯👍👍
👌👋👍👍👍
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
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~
@@pjk302 Thank you for your clarification, as when I used this it works fine.
😊😍🤩🤩🤩🤩🤩😍😍😍🤩🤩💕
correction - current_text=reader.pages[i].extract_text() # not reader.getPage(i) and extractText() - may be due to improvement to pyPDF2 v 3 .#.#
choukran hala
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
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