Sunday, July 28, 2024

Programming GUI: Tkinter Docx To Pdf Converter

DOCX2PDF converter base on Pyhton Tkinter

    Hi! Welcome to my blog. Today, I'm sharing one of my programs with you. I developed this program in 2023 when I needed to convert my cover letter and resume. I was concerned about sharing sensitive personal information on websites that convert various documents, including DOCX to PDF. So, I decided to create a tool that allows me to handle these conversions privately. The GUI is not beautiful but it is very useful and let's go I will show you!


MVC Design

What is MVC? MVC, which stands for Model-View-Controller, is a design pattern used in software engineering to separate an application into three interconnected components. This separation helps in organizing code, making it more modular, and managing complex applications. 

So whenever I need to change the GUI or adding more feature or fixing bug, it can be done easily with MVC design pattern.

MVC software design architecture.


Code Snippets for Building Widgets

Codes to build the widgets.

For the widgets I put label, text field, button, label frame, entry etc.


Running The Program

I think it's time to run the program. Please note that this program is designed to run only on a Windows machine due to its reliance on Microsoft Office for converting DOCX files into PDF. The absence of Microsoft Office on other operating systems may prevent the module from working correctly.

My resume conversion into PDF file.

It was converting my resume into PDF file.


Final Result Of PDF File

I intended to save the final PDF file to the desktop for ease of access. Simply go to the desktop, where the file will be ready to open with a PDF reader or to attach to a website or email.

Docx to PDF final result conversion.

 

End...

I hope this demonstration is helpful, have a nice day and thank you for visit my blog.

P.S
When I program, I use interchangeable operating systems simultaneously between a Windows virtual machine and a Linux host machine. If the switching images caused any confusion, I apologize. Thank you for your understanding and for visiting.