filmov
tv
Saving user entered data in a Tkinter application window through Text widget in a PDF file

Показать описание
We will create one Tkinter window and place one Text widget in it to receive the user inputs. This text widget can accept multiline inputs from user. One button will be used to trigger the saving operation. On Click of the button one function gen_pdf() is triggered.
Inside the function first we will read the user entered data.
Remove the line breaks
Add the text to Paragraph and connect to the style properties. Then we can save the data in canvas and generate or update the PDF file
Download the source code of this script
Part 1 Creating PDF file and adding text, line , images , water mark etc
Part 2 Generate PDF Mark sheet of students using data from SQLite or MySQL table
Part 3 PDF Invoice generation in Python
Part 4 Adding table to PDF file
Part 5 Adding database table data to PDF file
Part 6 Adding Pandas DataFrame data to PDF file
Part 7 Adding shapes like circle, rectangles
Part 8 Adding bar charts
Part 9 Adding line charts
Part 10 Adding Pie Charts
Part 11 Adding Paragraph
Part 12 Creating PDF reports
Inside the function first we will read the user entered data.
Remove the line breaks
Add the text to Paragraph and connect to the style properties. Then we can save the data in canvas and generate or update the PDF file
Download the source code of this script
Part 1 Creating PDF file and adding text, line , images , water mark etc
Part 2 Generate PDF Mark sheet of students using data from SQLite or MySQL table
Part 3 PDF Invoice generation in Python
Part 4 Adding table to PDF file
Part 5 Adding database table data to PDF file
Part 6 Adding Pandas DataFrame data to PDF file
Part 7 Adding shapes like circle, rectangles
Part 8 Adding bar charts
Part 9 Adding line charts
Part 10 Adding Pie Charts
Part 11 Adding Paragraph
Part 12 Creating PDF reports