How To Read A PDF File With Tkinter - Python Tkinter GUI Tutorial #143

preview_player
Показать описание
In this video I'll show you how to read a simple PDF file with TKinter.

We'll open the PDF file using PyPDF2, and read it into a Tkinter Text() widget. Reading simple pdf files with Python is pretty easy, it only gets more complicated when the pdf files start using images and input fields and things like that ;-)
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

I don't have PC but I still do in phone.using pydroid 3.. I want to master python ... ....😁

idk____idk
Автор

instead of reading the PDF content, is there a simple way of just displaying the first page of the PDF? for example displaying it on a Frame or Label?

halalmeatshophk
Автор

This is actually what i'm searching for 👍🏻 YouTube is so cool 😀 and you also 😎👍🏻

m_abhijit_
Автор

Hi Jhon, I cnt read off teh pdf tex, t, I can get to the folder directory but when I call the pdf, the screen is b;ankc, you method may be faulty, by the way I double checked the code many times

py_tok
Автор

I am a beginner of python.you are awesome man.

hamidhafiz
Автор

Thanks Sir.I was looking for this kind of video for my project

suleman
Автор

Is there a way to make it then when an entry box appears, the user can already type without having to click on it?

rensgalesloot
Автор

Hey please tell me how to open multiple pages in this GUI.

sanyamrawal
Автор

These videos are super helpful for beginner programmers, thank you!

I have a problem with texts in Tkinter, maybe you have a quick answer..
In this case app does not extract (or visualize in text box) words that include letters with some diacritic marks (like ā, ž, ņ). Diacritic marks are also displayed as weird symbols if a text from text box is saved to .txt file. I guess it has to do something with encoding?

KristiaansPaaps
Автор

PDF viewer and editor, zoom in, out, select like adobe.is there pdf viewer in python.

PANDURANG
Автор

Very interresting... What about pdf files with text AND Photos (*.png)

vulnoryx
Автор

when click the menu how to put the choice from the beginning of line not from center?

ramehharmouch
Автор

please solve this issue: many of the imports are not being recognised by "pylance", in vs code for me. it cant even recognise the PYPDF2 module. How do i solve this annoying issue>

suyoggoel
Автор

A big fan of all ur playlists....
Is it possible to add scrollbars to dropdown menus and other widgets.... If it is possible please make a video on that....

varyirving
Автор

Hey John, thanks for the cool vid! I kept getting this error on the final run: "PdfReadWarning: PdfFileReader stream/file object is not in binary mode. It may not be read correctly. [pdf.py:1079] Exception in Tkinter callback." If anybody else gets it...The fix is: add the parameter mode='rb' to filedialog.askopenfile(), It opens it in binary mode and then PdfFileReader works on the welcome.py file. Go fig' . Thanks again.

johngiangrande
Автор

Hey Mr elder,
Can u tell us how we can add spaces in the output
Because whenever there is a line change its eds up like :
HelloWelcome to codemy.comI am John elder

aadityasahoo
Автор

how to make line number for text editor in Tkinter

folody
Автор

Import "PyPDF2" could not be resolvedPylance

techgander.official
Автор

You could have used lambda instead of making the 'clear text ' function

mithilsingh