A simple, user-friendly desktop application built with Python and Tkinter to seamlessly select and print PDF files. The application leverages Ghostscript under the hood to handle the PDF printing process directly to your system's default printer.
- Intuitive GUI: Clean and simple graphical interface created with Tkinter and themed with
ttkthemes. - Easy File Selection: Browse and select any PDF file from your system.
- One-Click Printing: Send your selected PDF directly to the default printer without opening any external PDF viewer.
- Standalone Executable: Easily build the app into a
.exefile for Windows users.
- Blog Post: Read more about the project here
- Demo Video: Watch it in action on YouTube
To run the script from the source, ensure you have Python 3 installed along with the following dependencies. You can install them via pip:
# GUI Themes
pip install ttkthemes
# Windows API for printing
pip install pywin32
# Required for building the .exe file
pip install cx_Freeze==6.1(Note: Tkinter and os are generally included by default with standard Python installations.)
- Clone or download the repository to your local machine.
- Navigate to the script directory (
Print Pdf Py - Script - 1.0). - Run the main Python script:
python "Print Pdf Python.pyw" - Click Browse Folder to select a PDF file.
- Click Print File to send it to your default printer.
If you wish to create a standalone Windows executable (.exe), you can use the provided setup.py script using cx_Freeze:
python setup.py buildThis will generate a build folder containing your executable application that can run on systems without Python installed.
