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

Custom print on DNP DS620 cutting problems

Hi everyone i'm currently using a DNP DS620 on a raspberry pi and i'm doing some printing with the lpr commands like lpr -P printername -o landscape picturename This gave me a picture of 4x6 inch (10x15cm) So i'm able to order some prints with a…
Gauthier
  • 165
  • 2
  • 14
2
votes
1 answer

Custom Cups banner page

I want to create a custom Cups banner page and have so far come up with nothing when searching the net for how to do this. In /usr/share/cups/banners there are "high-level" definitions of banners that in turn refer to PDF files found in…
2
votes
1 answer

Slow priniting when I use Python CUPS

When i try to print document with CUPS and xhtml2pdflibrary - everything is good, but i get very slow printing. Is there any solution for this problem? Here is Python code: import cups from xhtml2pdf import pisa def main(): filename =…
Stopfan
  • 1,649
  • 15
  • 22
2
votes
1 answer

cups: How can I determine if the current / default printer is physically connected and turned on?

Is there a way to detect if a printer is online using libcups or Qt? I am working on a program that requires a printer, and uses both libcups and QPrinter I would like to give the user a nice error message if the current/default printer is not…
Thalia
  • 13,637
  • 22
  • 96
  • 190
2
votes
2 answers

sandboxd prohibits my custom backend to run on OS X Yosemite

I have made a custom CUPS backend in Perl. It works perfectly in 10.7-10.9, but 10.10 (Yosemite) apparently has a new sandbox feature that stops me from including a file from a subdir in "/opt". Any suggestions are welcome! Here is from the cups…
Mads Y
  • 342
  • 1
  • 4
  • 12
2
votes
0 answers

Why saturation=0 is not working on my printer for lp or lpr command?

I am trying lp -o saturation=0 -o /file/path This is a coloured pdf file and I want a black and white printout of it. Why am I still getting colour print out? Where am I mistaking? My printer is : HP Deskjet Ink Advantage 1515
user1532043
  • 859
  • 2
  • 15
  • 26
2
votes
1 answer

lpr: Error - unknown option "V"

I am getting this error when trying to run the lpr command: lpr: Error - unknown option "V". My full command I am running is lpr -V -P printer-1 file.txt According to the documentation here…
benjovanic
  • 537
  • 1
  • 5
  • 18
2
votes
0 answers

How to get information of the job when print job has arrived?

I am trying to find out printer jobs information in Mac OS and I have got this by using CUPS library. Now I want to get the information of new job when print job has arrived. Does anyone know that how to programmatically get the information of the…
sam
  • 481
  • 2
  • 8
  • 21
2
votes
0 answers

How to send data to raw CUPS printing queue programatically?

I am using MonoMac (with gtk#) and I need to send raw ZPL commands to CUPS printer. Raw commands look like text. They are not "images". I see that Mono can print images via System.Drawing, but how can I send raw data (raw text) ? It looks like I…
Alex Uslontsev
  • 543
  • 8
  • 19
2
votes
1 answer

Fatal Error: Call to undefined function _()

I'm trying to use this php class on my CUPS Server. Now when I try to call a function from this class, i get Fatal error: Call to undefined function _() in /usr/local/share/php/printipp/BasicIPP.php on line 344 Line 344 Looks like this: …
GameDevGuru
  • 1,095
  • 2
  • 12
  • 27
2
votes
0 answers

Printing multiple files with different print options using libcups

I am using libcups on Linux to print files. I want to print multiple files in one print request with different cups_options_t for each file. There is a library API cupsPrintFiles but as per its interface it applies one cups_options_t to every file.…
Farrukh Arshad
  • 1,391
  • 2
  • 16
  • 26
2
votes
1 answer

Compiling CUPS for android x86

I am working on compiling a custom android-x86 build for an embedded device. I need to utilize a USB thermal printer. On Ubuntu it works out of the box with cups on /dev/usb/lp0. I can't seem to find anything regarding instructions on porting CUPS…
Michael
  • 891
  • 2
  • 16
  • 32
2
votes
1 answer

How to start/stop printer?

How do you pause/unpause a print queue using the CUPS API? Using CUPS API I can check the printer-state using cupsGetOption(). If this returns a value of 5, I know the printer is stopped or paused. I'd like to unpause the printer in this case, is…
trueinViso
  • 1,354
  • 3
  • 18
  • 30
1
vote
1 answer

Why is CUPS not returning my default printer?

I'm making the following call: cupsGetDest(0,0,numDests,dests); Where numDests and dests are set appropriately. null is returned, even though I have a default printer set. Why is this?
fredley
  • 32,953
  • 42
  • 145
  • 236
1
vote
1 answer

Subtype and mDNSResponder

I would like to publish my local printer using the instruction from http://praxis.edoceo.com/howto/cups-airprint BUT with mDNSResponder rather then Avahi. This is not about which one is better as Avahi can do this and has it documented, but about…