![how to convert text file to pdf free ap how to convert text file to pdf free ap](https://images.wondershare.com/pdfelement/mobile-app/pdf-knowledage/print-pdfelement.jpg)
# from text_file and insert it into pdf cell Info_label = Label(frame, font=('ariel 15 bold'))įile_entry = Entry(frame, textvariable=file,font=('ariel 11 bold'), bd=2, relief=RIDGE)įile_id(row=0,column=1,padx=15,pady=15)įile_path = filedialog.askopenfilename(initialdir = os.getcwd(),title= "select file",filetypes = (("Text file","*.txt"),("All files","*.*")))
![how to convert text file to pdf free ap how to convert text file to pdf free ap](https://images.wondershare.com/pdfelement/pdfelement/7-guide/print-note.jpg)
Open_file = Label(frame, text="Open File:", font=('ariel 15 bold')) This is the test file which is used to convert it into pdf file.įrame = LabelFrame(root, text="File Converter", font=('ariel 15 bold'),bd=5,fg='red',labelanchor='n',relief=GROOVE) Suppose test.txt contains the below text,
How to convert text file to pdf free ap install#
As fpdf is not an inbuilt module we have to install it by using pip command. Tkinter and os both of these modules are inbuilt so no need to install them. So in this post we will create a gui which can convert text file into pdf. But we can also create a simple gui application with the help of tkinter in python which will convert any text file into pdf file. There are many free tools to convert text file into pdf file where we can convert any text file into pdf file.