How to add PDF in Tkinter GUI Python ? Last Updated : 13 Jan, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, We are going to see how to add a PDF file Tkinter GUI, For that, we don't have a direct widget to do this. For that, We need to have python version 2.7 or more. And you need to install the 'tkPDFViewer' library. This library allows you to embed the PDF file in your Tkinter GUI. Installation: To install this library you just have to type: pip install tkPDFViewerApproach:Initialize tk and geometry of our GUI.Import tkPDFViewer.Make the object of Class ShowPdf() from tkPDFViewer.Using pdf_view method from ShowPdf() to place our pdf.Pack the pdf_view in GUI.Arguments of method pdf_view:ArgumentsUsespdf_location = "location of your PDF"To add your location of PDF.width = 0 To set the width of PDF Frame.height = 0To set the height of the PDF Frame.bar = True or FalseTo hide or unhidden the loading bar.load = after or beforeTo decide that, when your pdf object is to convert. Below is the implementation: We are using this pdf for demonstration: Code: Python # Importing tkinter to make gui in python from tkinter import* # Importing tkPDFViewer to place pdf file in gui. # In tkPDFViewer library there is # an tkPDFViewer module. That I have imported as pdf from tkPDFViewer import tkPDFViewer as pdf # Initializing tk root = Tk() # Set the width and height of our root window. root.geometry("550x750") # creating object of ShowPdf from tkPDFViewer. v1 = pdf.ShowPdf() # Adding pdf location and width and height. v2 = v1.pdf_view(root, pdf_location = r"location", width = 50, height = 100) # Placing Pdf in my gui. v2.pack() root.mainloop() Output: Comment More infoAdvertise with us Next Article How to use HTML in Tkinter - Python? R roshanpaswan205 Follow Improve Article Tags : Python Python-tkinter Python Tkinter-exercises Practice Tags : python Similar Reads How To Add An Image In Tkinter? Python Tkinter supports various image formats such as PNG, JPEG, GIF, and BMP. Images are handled in Tkinter using the PhotoImage and BitmapImage classes and the Pillow Library. The PhotoImage class is more commonly used due to its support for color images, whereas BitmapImage is limited to monochro 4 min read How to use HTML in Tkinter - Python? Prerequisite: Tkinter Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest and easiest way to 2 min read How to create Option Menu in Tkinter ? The Tkinter package is the standard GUI (Graphical user interface) for python, which provides a powerful interface  for the Tk GUI Toolkit. In this tutorial, we are expecting that the readers are aware of the concepts of python and tkinter module. OptionMenu In this tutorial, our main focus is to cr 3 min read Python GUI - PyQt VS TKinter A GUI toolkit contains widgets that are used to create a graphical interface. Python includes a wide range of Interface implementations available, from TkInter (it comes with Python, ) to a variety of various cross-platform solutions, such as PyQt5, which is known for its more sophisticated widgets 5 min read How to embed Matplotlib charts in Tkinter GUI? Prerequisite: Introduction to Tkinter | Introduction to Matplotlib When Matplotlib is used from Python shell, the plots are displayed in a default window. The plots can be embedded in many graphical user interfaces like wxpython, pygtk, or Tkinter. These various options available as a target for the 3 min read Python | Add image on a Tkinter button Tkinter is a Python module which is used to create GUI (Graphical User Interface) applications with the help of varieties of widgets and functions. Like any other GUI module it also supports images i.e you can use images in the application to make it more attractive. Image can be added with the help 3 min read Like