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
1 answer

Run a script when user press print, and not start spooling before script ends (linux, cups)

What I need to do, is execute a python program/script in conjunction with user presses print, and not let the print job spool before this program quits. Reason is that the print driver is not open source, and I need to change user settings (in this…
Fredz
  • 79
  • 7
3
votes
1 answer

CUPS printers does not show up in printer dialog

If i add a printer through normal print-dialog (preferences->printers) in OSX it shows in the list. If i then go into CUPS and change the driver for this printer to RAW ( thats what i need ) - then i can do that, but it then dissapears from my…
user2504392
  • 61
  • 1
  • 4
3
votes
3 answers

Get the layout mode (landscape or portrait) of a pdf from php/linux

Given a PDF, how can one get the layout mode of a PDF (or relative width/height) using a PHP lib or linux command line tool? Using http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf which can set this variable on new PDFs, but for…
Jonathan Hendler
  • 1,239
  • 1
  • 17
  • 23
3
votes
1 answer

Printing postscript and raw data to line printer generates excess top margins

We have a custom application which when printing under Unix pipes a PDF file through Adobe's acroread Unix command to generate a PostScript file, and then sends it to the printers using the lp command. I've been dealing now for a while with a line…
Luke Cardeaux
  • 781
  • 2
  • 8
  • 10
3
votes
2 answers

Print a postscript document with CUPS and a thermal printer

I installed an epson TM-T20 in Ubuntu 12.04, using the official driver. This is a thermal printer, I'm using 80mm paper. My problem: When I print an image (using a postscript document) it waste a lot of paper because the image uses around 5cm and…
user1370912
  • 919
  • 2
  • 9
  • 15
2
votes
4 answers

Printings using CUPS, when can my app quit?

I have an linux app that uses cups for printing, but I've noticed that if I print and then quit my app right away my printout never appears. So I assume that my app has to wait for it to actually come out of the printer before quitting, so does…
KPexEA
  • 16,560
  • 16
  • 61
  • 78
2
votes
2 answers

Cannot start CUPS service in docker container, cups.socket is missing

I have a docker image (from eclipse-temurin:17-jre-focal) where I install CUPS and start that image via compose file. This image works fine on Azure Ubuntu VM's, but on a physical NUC server running ESXi and CentOS 9 as host OS, the CUPS service…
voloszad
  • 51
  • 4
2
votes
0 answers

How to solve Android problem for printing over CUPS?

I don't know if this is the right place to ask these kind of questions, but I know no better platform than this one. Anyway, it's related to networking and Linux. I have a very old printer in my house (HP LaserJet P2015 Series). I also have a RPi 4…
2
votes
1 answer

How is it possible use CUPS as client inside a docker container?

I have a application which uses lp command, by deploying it to a container I realized problems to print using CUPS. Dockerfile: FROM node:15 RUN apt-get update && \ apt-get -y install cups cups-pdf WORKDIR /app/ COPY package*.json ./ RUN…
Hasunohana
  • 565
  • 8
  • 22
2
votes
1 answer

Ghostscript under linux: Times too wide

How to make Times working for printing under linux? I have debian wheezy linux, ghostscript, cups, mscorefonts installed. But when i do print, i get Times too wide, comparing to windows one -- letter spacing are too wide. Any way to fix that…
datacompboy
  • 301
  • 5
  • 17
2
votes
1 answer

Pycups - create and send IPPRequest with IPPAttribute and parse response (enable IPP:Hold-New-Jobs)

In CUPS, I want to hold all new printer jobs, check the cartridge levels of my printer and one by one release jobs for printing. (My printer kills the cartridge-chips when falling below a certain percentage to prevent refilling.) I have CUPS…
2
votes
1 answer

Wrapping libcups C library in Swift

I am trying to wrap the libcups library https://github.com/apple/cups to be used in my Swift project. I have tried some of the examples in https://www.cups.org/doc/cupspm.html and they are working fine. However I am struggling when it comes to…
hweiguang
  • 143
  • 7
2
votes
0 answers

undefined reference to symbol 'inflateEnd'

I'm using Qt Creator 4.11.0-beta2 (4.10.83) in a project. Wanted to add CUPS for printing abilities. Added library libcups.a in the projects *.pro file : LIBS += \ /usr/lib/x86_64-linux-gnu/libcups.a When linking I get the error. :-1: error:…
Atle Timland
  • 21
  • 1
  • 2
2
votes
1 answer

Unable to get paper colors from cups 2.0.1 using cups4j

I'm currently using Cups Version 1.2.4 for a print-application. A mandatory feature is to read the paper color (White Paper, Blue Paper, ..). This is done by reading the mediaSupported tag with an old print library called jipsi. The…
Bahnstreik
  • 21
  • 1
2
votes
1 answer

ZEBRA Printer sometimes prints an empty page

I have a ZEBRA ZT230 ZPL Labelprinter configured under Linux Debian and under Linux Ubuntu. Since there are no official drivers (for anything but Windows) I am using the CUPS Driver for Linux. Most of the time the printer works fine but…
Paul Erlenmeyer
  • 523
  • 2
  • 6
  • 29