Python 3 Tkinter tkpdfviewer Library to Display PDF Documents inside Canvas Window Widget GUI Desktop App Full Project For Beginners

 

 

pip install tkpdfviewer

 

 

 

 

 

app.py

 

 

from tkPDFViewer import tkPDFViewer as pdf
from tkinter import*
root = Tk()

#create object like this.
variable1 = pdf.ShowPdf()
#Add your pdf location and width and height.
variable2 = variable1.pdf_view(root,pdf_location=r"location",width=50,height=100)
variable2.pack()
root.mainloop()

Leave a Reply