Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.14 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.14 KB

Brother P-touch P700 label printer for Linux

Building

On Debian/Ubuntu-like systems, compile and install with

sudo apt install git make gcc libudev-dev python3-pil python-usb libusb-1.0-0 python3-gi gir1.2-gtk-3.0
git clone https://github.com/abelits/ptouch-770
cd ptouch-770/
make
strip ptouch-770-write
sudo cp ptouch-770-write ptouch-770-gui /usr/local/bin/

Usage (Python GTK3 GUI)

screenshot

Usage (Python script)

The Python script can be used to print multi-line text like this:

./ptouch-770.py --text "test\nfoo"

Usage (raw tool)

Print a test image with

sudo ptouch-770-write tux-128px-bw.pbm

On the P700, this will result in the printer spitting out approximately 20mm of unprinted label, then cutting the label, then printing the Tux graphic on another approx. 20mm of label and cutting the label again.

To print some text using a 12mm TZe tape:

#!/bin/bash

# The following works for 12mm TZe tapes
convert -size x100 -gravity south -pointsize 72 caption:"Test" write.pbm
ptouch-770-write write.pbm