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

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

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

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()
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment