Questions tagged [cups]

CUPS is the standards-based, open source printing system for Mac OS X and other UNIX®-like operating systems.

CUPS (formerly an acronym for Common Unix Printing System) is a modular printing system for Unix-like computer operating systems which allows a computer to act as a print server. A computer running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer.

More information at

  1. http://en.wikipedia.org/wiki/CUPS
  2. http://www.cups.org/
420 questions
3
votes
0 answers

How do I talk directly to a printer that's connected via USB on macOS, using xxPL commands?

I have a special label printer (GoDEX RT863i) connected to a Mac. It uses the CUPS system and is configured through a PPD file. Printing through the macOS print system generally works. Now, I need to send some special commands to the printer via its…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
3
votes
1 answer

Java printing thread gets stuck : WHY?

In my Java 8 application (RHEL 6.x, Wildfly 10.1.0.Final) the first time a user prints a document, application gets stuck while getting the list of printers from the system. Here is the stacktrace of the blocking thread : "Thread-211" #799 daemon…
mishka
  • 155
  • 3
  • 11
3
votes
2 answers

How to dissect a CUPS job control file '/var/spool/cups/cNNNNNN'?

When printing a job to a CUPS server, you can set up the cupsd.conf parameters PreserveJobHistory and PreserveJobFiles to control how many jobs you want to keep. CUPS always temporarily stores the actual print job files in directory…
Kurt Pfeifle
  • 86,724
  • 23
  • 248
  • 345
3
votes
1 answer

Printing multiple Dymo labels with Cups

I can print a single label using the command lp -o DymoPrintQuality=Text -o PageSize=w54h144 -o landscape -n 1 -d Dymo400Turbo /tmp/test.txt. When I use the command lp -n 2 -o DymoPrintQuality=Text -o PageSize=w54h144 -o landscape -d Dymo400Turbo…
3
votes
1 answer

Get no. of pages before print in cups

What I have done:- I am using cups4j api and I am getting the print job attributes(Job ID, Job Name, Page Size, Job sender, Creation date and Completion date) of the print job that are being sent to the printer. What I want:- total no. of pages…
s.Tripathi
  • 41
  • 4
3
votes
2 answers

Why CUPS ships a web server instead of using httpd?

CUPS implements its own web server to host CGI programs on http://localhost:631 server: https://github.com/apple/cups/blob/master/cups/http.c CGI pages: https://github.com/apple/cups/tree/master/cgi-bin Creating a web server just for a printing…
Mateus
  • 49
  • 8
3
votes
1 answer

cups rejects printing pdf files with 'filter error' probalbly due to a too-long-title

My system is Debian 3.16.7. Today I rendered a printing job (a paper names Distributed Representations of Words and Phrases and their Compositionality) using cups to my Kyocera fs-1041 printer. However the printer reject to print with an error…
3
votes
0 answers

Select tray with python-cups?

How can I select tray when I send a file to the printer with python-cups? I have a very simple testprogram that looks like this: #!/usr/bin/env python import cups import sys if __name__ == '__main__': filename = sys.argv[1] conn =…
UlfR
  • 4,175
  • 29
  • 45
3
votes
2 answers

How to print a PDF to a raw printer file with CUPS in terminal

In OSX, I want to print to a file from the terminal. I have two solutions, but both have drawbacks. 1. Use 'cupsfilter' cupsfilter -m application/vnd.cups-postscript \ -p /etc/cups/ppd/my_printer.ppd \ -o Duplex=DuplexNoTumble \ -o…
Paul Verschoor
  • 1,479
  • 1
  • 14
  • 27
3
votes
2 answers

EPSON TM-T20II printing using RPI2

I am attempting to print a text document using a RPi 2 but when I attempt to print the printer just prints out unreadable text eg:- @EJL 1284.4 @EJL JSGUTENPRINTPMMIɸüüüüüÖüüüüüÖüüüüüÖüüüüüÖüüüüü …
Tony Hensler
  • 39
  • 1
  • 6
3
votes
2 answers

How to make PHP wait until PDF is created for printed?

I have a script that creates a PDF document and proceed to send it to be printed. It happens that I need to wait for the document to be created, check that and recently sent for printing. define('TIKET_DIR', public_path('temp/')); $token =…
3
votes
2 answers

unable to compile cups (in Debian, using dpkg-buildpackage)

I have downloaded cups source with apt-get source cups, and I am trying to compile it with dpkg-buildpackage. The compilation fails with following error: PASS: All job control files purged. PASS: Printer 'Test1' correctly produced 55 page(s). PASS:…
Martin Vegter
  • 136
  • 9
  • 32
  • 56
3
votes
3 answers

How can I cleanly manage printers.conf with Ansible?

I have the following Ansible playbook file, which attempts to manage the printers.conf on a set of CentOS 6 boxes. --- # file: roles/common/tasks/config-cups.yml # Configure printing - name: ensure cups is installed yum: pkg=cups…
R Perrin
  • 471
  • 3
  • 8
3
votes
0 answers

How to write a cups raster driver which is writing to a specific device

For a embedded linux project i wrote a printer driver for a custom thermal printer. Everything worked fine. I have a device /dev/thprint now and i can just write pixel into this device and its actually printing this pixels (just a bit array with a…
maggocnx
  • 1,512
  • 3
  • 11
  • 14
3
votes
1 answer

I want handle CUPS authentication using Basic authtype, how to custom PAM?

I'm using simple pam on github(https://github.com/beatgammit/simple-pam). And in my project, i want handle CUPS authentication using PAM, So i change /etc/pam.d/cups from: @include common-auth @include common-account @include…
xinsheng
  • 96
  • 8