How to create pdf viewer app using python | python tkinter

How to create pdf viewer app using python | python tkinter

Parvat Computer Technology

2 года назад

24,659 Просмотров

In this video, I will show you how to create a pdf viewer using python. This is a completely GUI project. We have created this GUI with Tkinter, after creating a pdf viewer in Tkinter, we convert it to exe file(executable file).
An executable file (exe file) is a computer file that contains an encoded sequence of instructions that the system can execute directly when the user clicks the file icon.

Project description
The PDF File Viewer is exactly what it sounds like: a viewer app that displays PDF files within a user's browser, similar to the experience you'd get in a traditional desktop PDF viewer like Adobe Reader.

tkPDFViewer
The tkPDFViewer is python library, which allows you to embed the PDF file in your tkinter GUI. In just three steps.
Install
Import
Embed on your gui

Features!
1. Embed your PDF in your tkinter GUI.
2. Customize the width and height of your PDF.
3. High-quality pdf pages image with customizable width and height worked with python .

Installation
Install tkPDFViewer using pip
pip install tkPDFViewer

We have also added open button in this tkinter project , so that we can directly browse and open our file .No need to paste or add file location to open .
On the date of uploading i believe that there is not such video available on YouTube .

if you like the the video provided by me ,then subscribe to my channel and share this video with your friends.🙏🙏
All the best.

------Other Python Projects -----
1.How to Convert Image to pdf using Python
https://youtu.be/21zTz_qKsuM

2.Voice Recorder using Python
https://youtu.be/nNgAY0AB8g0

3.Digital Clock Using Python | Creating clock in Python
https://youtu.be/cBlZpCPvQzY

4.TEXT TO SPEECH USING PYTHON | Convert Text to Speech -gTTS(Google Text to Speech)
https://youtu.be/Egk26XMKicY

5.How to Create Calculator in Python - Calculator In #Python​ Using #Tkinter
https://youtu.be/6CZB6VTy3Hg

6.Creating a GUI Notepad In Tkinter | Python Tkinter GUI Tutorial
https://youtu.be/uf1IAjxmsD4

7.Create a ImageViewer using Python | Python #Tkinter
https://youtu.be/l4ifwGaWyKo

8.Create GUI Calendar Using Python - Python Tkinter Tutorial
https://youtu.be/-ElmDkkp0pw

9. Brute Force Password Cracker With Python
https://youtu.be/M07T7l31hX8

10. How to take Screenshot using Python | PyAutoGUI
https://youtu.be/Ww1GKWvG59c

11.how to create translator using python | python tkinter
https://youtu.be/3ydfbFFrPWE

12. How to Create Age Calculator using Python Tkinter | Python Project
https://youtu.be/6gdeuUuH_hc

13. Text to speech GUI convertor using Tkinter in Python
https://youtu.be/wJRW46ykzx8

14. How to extract any ZIP files using Python | Python Project
https://youtu.be/GOVtqIIxF1M

#pythonprojects #pythonproject #tkinter

-Parvat computer technology

⚠if you getting any error !! than you can comment me 🙂
#parvatcomputertechnology

related video title
* how to create pdf viewer using python
* How To Read A PDF File With Tkinter - Python Tkinter GUI Tutorial
* Python Tkinter GUI Script to Load and View PDF Document Using tkPDFViewer Library Full Project App
* PDF Reader in Python
* How To Read PDF Files in Python
* Python GUI open a file (filedialog) 📁
* Work With PDF Using Python
* How to convert tkinter to exe using python
* How to work with pyinstaller
* how to convert python to exe

Тэги:

#Parvat_computer_technology #parvatcomputertechnology #pdf_viewer_using_tkinter #python_pdf_generator #python_hacking #python_projects #python_pdf_reader #python_pdf_data_extraction #python_gui_app #pdf_viewer #how_to_create_pdf_viewer #tkinter_modern_gui #python_tkinter_project #python_project #tkinter_python_project #how_to_create_pdf_viewer_using_python #tkinter_pdf_viewer #tkinter_browse_document #select_pdf_tkinter #document_viewer_using_python #advance_tkinter_projects
Ссылки и html тэги не поддерживаются


Комментарии:

ROK Kor
ROK Kor - 28.10.2023 01:16

Where code

Ответить
Michiko Shin
Michiko Shin - 30.07.2023 20:40

Thanks.

Ответить
Tradutor Quântico
Tradutor Quântico - 04.06.2023 22:49

The conversion to exe is working, the app opens, but the pdf does not execute, it works in py but no in exe

Ответить
Sakshi Utturi
Sakshi Utturi - 04.05.2023 17:31

source code?

Ответить
Ronelo Sanchez
Ronelo Sanchez - 08.04.2023 13:09

How to use this in web app?

Ответить
ME TO ME ID
ME TO ME ID - 23.03.2023 06:10

..how to clear viewerpdf...to open second file pdf..

Ответить
Ali Khezri
Ali Khezri - 14.01.2023 15:22

Hi
i write this code completely but i face to this error
AttributeError: 'Page' object has no attribute 'getPixmap'. Did you mean: 'get_pixmap'
can any body help me thank you

Ответить
TechCare
TechCare - 05.12.2022 17:20

Can we see annotations here?

Ответить
1HourMusic
1HourMusic - 30.11.2022 16:38

AttributeError: 'Page' object has no attribute 'getPixmap'. Did you mean: 'get_pixmap'?

Ответить
Adriana N. da Silva
Adriana N. da Silva - 21.11.2022 03:56

I got this error:


v1=pdf.ShowPdf()
AttributeError: module 'tkPDFViewer' has no attribute 'ShowPdf'

Ответить
Navaneethakrishnan S
Navaneethakrishnan S - 06.10.2022 10:25

how to open another pdf file in the same without closing the tab..?? I can't open an another pdf file.

Ответить
George Codeing
George Codeing - 27.09.2022 23:28

thank u for the helpful video but sadly the tkpdfviewer keep giving me the progressbar not defined error any idea how to solve it ?

Ответить
anbu renganathan
anbu renganathan - 14.09.2022 05:09

create you create search box inside pdf viewer

Ответить
Linde Nouwen
Linde Nouwen - 28.08.2022 16:11

I get this error: AttributeError: 'Page' object has no attribute 'getPixmap' from the pdf_view command

Ответить
Alshad's Vlog
Alshad's Vlog - 15.07.2022 07:09

*************Problem**************

Line 973, in _bootstrap_inner
Self.run()
Line 910, in run
Self._target(*self._args, **self._kwargs)
Pix = page.getpixmap()

Ответить
Abdou Hk
Abdou Hk - 07.07.2022 00:32

Great 🙏

Ответить
Revendra Kumar
Revendra Kumar - 18.06.2022 12:57

AttributeError: 'Page' object has no attribute 'getPixmap'

Ответить
Андрій Шкіпер
Андрій Шкіпер - 09.05.2022 08:39

Thanks!!!_)

Ответить
Actualité Sport
Actualité Sport - 08.04.2022 01:14

Bonjour est ce que vous avez un exemple de projet chercher et remplacer sous tkinter ?

Ответить
BI Dev
BI Dev - 06.04.2022 08:40

Hey, How to add "zoom" part in this code?
Thanks in advance.

Ответить
Guulaysi
Guulaysi - 28.03.2022 20:24

thanks lotoHome of education

Ответить
Funny Clips
Funny Clips - 27.02.2022 13:45

Excellent!!! But pls, how do I use grid manager instead of pack using the tkPDFViewer....? Thanks🙏🏾

Ответить
AMI個管師耀譽
AMI個管師耀譽 - 04.02.2022 18:29

TypeError: pdf_view() missing 1 required positional argument: 'master

Ответить
artie .s
artie .s - 24.01.2022 23:48

someone solve the problem about open second file?

Ответить
Dario Mansilla
Dario Mansilla - 25.11.2021 18:48

How can I open another file without the previous one appearing?

Ответить
Funny Clips
Funny Clips - 25.11.2021 10:29

It's awesome! I've learned a lot from this video.. kip it up👍🏾

Ответить
Umidjon Sadatov
Umidjon Sadatov - 20.09.2021 20:13

So, How we can change the pdf location? I open a pdf-file, then the next time I try to open another pdf-file, but it opens the first file again...

def Show_document(file):

Show_document_window = Toplevel()

Show_document_window.geometry('500x600+500+30')
Show_document_window.resizable(False, False)
v1 = tkpdf.ShowPdf()


v2 = v1.pdf_view(Show_document_window, pdf_location=open(file, 'r'))
v2.pack()

Calling the Show_document function second time with other file name doesn't effect, it opens the previous file again.

Ответить
Aaryan Singh
Aaryan Singh - 16.09.2021 22:57

How you will get this type of idea i also want to creat photo to text without copying but don't get the idea how to do

Ответить
royal life
royal life - 05.09.2021 11:36

TypeError: expected str, bytes or os.PathLike object, not _io.TextIOWrapper

Ответить