Skip to content

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

License

Notifications You must be signed in to change notification settings

bmurray7/ptouch-print

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.1%
  • M4 5.6%
  • Makefile 1.3%