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

Why is the print job not executed until the python script has finished?

In my understanding, subprocess.Popen() should create a new process and does not block the main one. However, the following scripts do not print until they have finished. It appears that the print job is added after the button is pressed, but for…
AFoeee
  • 731
  • 7
  • 24
2
votes
1 answer

Does CUPS have properties for "margins"?

I cannot find what properties of CUPS must be used, for printer margins, left/top/etc. Maybe CUPS dont support margins at all? I wanted to add margins support to Lazarus CUPS code.
Prog1020
  • 4,530
  • 8
  • 31
  • 65
2
votes
1 answer

ZPL setup GX430t

I use Raspberry Pi connected to a Zebra GX430t with CUPS. I use the "Local Raw Printer" driver and I send the ZPL directly to the printer using Python. I use the termal transfert mode, but I have a problem with the printer (300dpi), because the…
Takah
  • 345
  • 3
  • 20
2
votes
1 answer

How to inject user_provided vcap_services in spring boot

I’m developing an application in spring boot and deploying in PCF (Pivotal Cloud Foundry). I’ve created 3 “user-provided” services and I would like to inject them in my code using @ConfigurationProperties into a class. I’ve been looking around but…
user3382975
  • 23
  • 1
  • 6
2
votes
1 answer

CUPS with Zebra printer doesn't print

EDIT: I have found that the EPL2 driver allows for a partial print and crashes the printer after. Still no useful printing though -------------------------- I have a Zebra printer (LP2844) hooked up to an RPI, with Jessie installed. The printer…
ikdekker
  • 425
  • 3
  • 11
2
votes
0 answers

Python program to print "hello world" via CUPS?

import cups conn = cups.Connection() printers = conn.getPrinters() printer_name = printers.keys()[0] conn.printFile(printer_name,'/home/pi/Desktop/tempprint.jpg',"Hello",{}) how to printFile change to print text example "hello world"? not…
2
votes
1 answer

install CUPS in windows

in order to install base_report_to_printer module I realized that I should install cups as it is an external_dependencies 'external_dependencies': { 'python': ['cups'], }, It's okey to install it on ubuntu by running pip…
Borealis
  • 1,059
  • 2
  • 18
  • 37
2
votes
1 answer

CUPS State Change Subscription

I am attempting to listen for printer state changes (e.g. paper jam, paused...) The following code gives a "Bad notify-recipient-uri" response, then locks on ippReadFile and does not release when the printer is paused/unpaused. int main() { …
Kyle Berezin
  • 597
  • 4
  • 20
2
votes
0 answers

Embedded linux printer using cups raster driver

I'm busy with a project to make a custom printer. basically a RPi/beaglebone connected to a gantry with stepper motors and a print-head. I'm working on getting this setup to print an image from memory (with python), but I want to be able to print…
KobusG
  • 41
  • 4
2
votes
1 answer

Unable to print from PHP after system update (using exec via php)

I've used the PHP exec command to issue lpr -P printer_name /var/www/html/somefile.pdf but after a RHEL system update (7.2 to 7.3), selinux has decided to start blocking these requests. selinux permissions of the file being sent to print: ls -lZ…
a coder
  • 7,530
  • 20
  • 84
  • 131
2
votes
0 answers

How can I find the minimum printer margins?

Problems: I am printing custom size scenes, the printing must work on a variety of printers, standard or with custom sizes, or roll-fed (particularly this). Some of the custom printers are edge-to-edge. The user-defined canvas may or may not match…
Thalia
  • 13,637
  • 22
  • 96
  • 190
2
votes
1 answer

How to send send cups a "print only in black ink" command?

I try to get a HP Officejet Pro X476 to use only black ink to print plain text in document with colours. In LibreOffice this is possible, I just have to click on "print text in black" what is an option in the printing dialog (colour section). But…
Michael Hoeller
  • 22,018
  • 10
  • 39
  • 66
2
votes
1 answer

CUPS printing remote(http://) files from command line

I am trying to create a custom script to control my CANON SELPHY PRINTER form the command-line. lp -d Canon_CP900 -o media="CP_C_size" /Users/sangyookim/Desktop/selphy.jpg I have the tested the above code and it's working perfectly as I intend it…
2
votes
0 answers

'print to pdf' using cups & python in raspberry pi

I'm trying to print-to-pdf an image(e.g. Raspberry-Pi-Logo.png) using cups. I set everything fine and can make my pdf file using command from terminal (its requesting an id of the pdf file and i have found the file in the directory) . sudo lp…
syed zayed
  • 21
  • 4
2
votes
3 answers

Pycups Printer error

I'm trying to use python with pycups to print a file. import cups conn = cups.Connection() printers = conn.getPrinters () for printer in printers: print printer, printers[printer]["device-uri"] with open('m.txt', 'w')as output: …
shaggs
  • 600
  • 7
  • 27