This is a project to print files on a Bluetooth printer from a computer using Python.
- Python 3.x
- Libraries:
PIL
(Python Imaging Library): For image manipulation.PyMuPDF
: For working with PDF files.tkinter
: For the graphical interface.socket
: For communication with the Bluetooth printer.
-
Clone the repository:
git clone https://github.com/Cris-lml007/YHK-miniPrinter.git
-
Install dependencies:
pip install Pillow PyMuPDF
-
Run the
main.py
file for command line printing:python main.py
or run the
gui.py
file to open the graphical interface:python gui.py
-
Enter the MAC address of the Bluetooth printer and click "Connect".
-
Select a PDF file or an image and click "Upload PDF/Image".
-
Click "Print" to print the file on the connected Bluetooth printer.
- Connection to a Bluetooth printer.
- Printing of PDF files and images.
- Simple graphical interface for an intuitive user experience.
Contributions are welcome. If you would like to improve this project, please:
- Fork the project.
- Create a new branch (
git checkout -b feature-improvement
). - Make your changes and commit them (
git commit -am 'Add improvement'
). - Push to the branch (
git push origin feature-improvement
). - Create a new Pull Request.
This project was inspired by YHK-Cat-Thermal-Printer.