bmurray7 / ptouch-print

Print labels on Brother P-touch 2430PC printers on Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

ptouch is a command line tool to print labels on Brother P-Touch printers on Linux.

There is no need to install the printer via CUPS, the printer is accessed directly via libusb.

The tool was written for and tested with the PT-2430PC, but it should also work with the PT-1230PC (untested so far). Maybe others work too (please report USB VID and PID so I can include support for further models, too).

Further info can be found at: http://mockmoon-cybernetics.ch/computer/p-touch2430pc/

Build

  • autoreconf --install
  • make
  • sudo make install

U-Dev

To avoid running as root, add the line

SUBSYSTEM=="usb",ATTR{idVendor}=="04f9", ATTR{idProduct}=="202d", MODE="0666"

to the file /etc/udev/rules.d/99-local.rules

Usage

usage: ./ptouch-print [options] <print-command(s)>
options:
        --font <file>           use font <file> or <name>
        --writepng <file>       instead of printing, write output to png file
                                This currently works only when using
                                EXACTLY ONE --text statement
print-commands:
        --image <file>          print the given image which must be a 2 color
                                (black/white) png
        --text <text>           Print 1-4 lines of text.
                                If the text contains spaces, use quotation marks
                                around it.
        --cutmark               Print a mark where the tape should be cut
        --inverse               Print the inverse image (white text on black background)

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Print labels on Brother P-touch 2430PC printers on Linux.

License:GNU General Public License v3.0


Languages

Language:C 93.1%Language:M4 5.6%Language:Makefile 1.3%