Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lpr]

The tag has no usage guidance.

0
votes
0answers
25 views

command-line printing with auto rotate and center

I'm print pdf with command-line lpr -P <printer> <file>. I do not know how to enable auto rotate and center option.
18
votes
5answers
4k views

What does spool mean for printing?

Mark wrote a comment for me I don't know offhand how to make cups not spool, that is, how to make the lpr command only exit after the printer driver has run. What does "spool" for printing mean? ...
0
votes
1answer
42 views

CUPS + Canon MG5650: page cropped when printing duplex

I am trying to print on my Canon MG5650 via CUPS. I have a driver "Canon MG5600 series - CUPS+Gutenprint v5.2.11" was selected. I ran the following command to print "one-sided". the results seems ...
0
votes
1answer
43 views

lpr cannot open connection to localhost

I would like to know how to print with lp commands without using CUPS. If I send a file to print with this command: cat fichero.txt | lpr I've got this error: lpr cannot open connection to ...
1
vote
1answer
127 views

How can I list default lpr filters?

I can discard lpr default filters using the -l (or -o raw) option. But how can I list them ? (FWIW I'm using lpr from cups-client 1:2.2.6-15.fc28, Fedora.)
0
votes
0answers
277 views

lpr not working when called from PHP

I can print a file using "lpr [file_name]" on a printer within the local network, and it works just fine. I have a dummy website running a on a LAMP stack. It has a simple index.php file that writes ...
0
votes
2answers
165 views

How to find out what process is printing pages on remote printer through STDIN?

Some process sends output of my console over stdin to remote print server. If there is cups printer configured, it prints it. So I need to keep cups disabled. I suspect something is running lp or lpr. ...
2
votes
0answers
624 views

How to send SGD commands to USB printer?

I am trying to use SGD commands on Zebra 420 USB printer. printf "! U1 getvar \"device.languages\"\r\n" | lpr -P myprinter -o raw I expect this will print current lang value, but getting empty ...
2
votes
0answers
152 views

Why did duplexing with lpr start giving me blank pages?

I have a system that generates PDFs in an assortment of layouts, then sends them to a printer. I've been doing this exactly the same way religiously¹ for 3 years. The process is scripted and the ...
1
vote
0answers
88 views

LPR landscape requests for bizhub printers?

Does anyone have any experience with setting up LPR requests to Konica Minolta printers? I have been searching for weeks trying to find the correct syntax to send a request for landscape printing to a ...
1
vote
1answer
100 views

How to print non-consecutive pages from a file, 2 pages per sheet?

I readed a lot of information about lp and lpr linux commands. Today Im trying to print 4 non-consecutive pages from a file, 2 pages per sheet. I tryed a lot of commands: This one prints 4 sheets, 8 ...
5
votes
1answer
3k views

How to select paper source with lpr?

I had trouble printing PDFs with evince (fixed by Evince does not show printers) and in the meantime used lpr successfully to do things. I found several options in the man page (page-ranges, number-...
0
votes
1answer
102 views

How can I get full path to files in print queue?

I'm adding files to print queue using lpr. Is there a way to get full path to files in queue or to show the content of them?
2
votes
1answer
324 views

Printing 2 jpeg files on one side of a paper by CLI

I use debian jessie. I want to print 2 jpeg files on one side of a paper. $ lpr -o number-up=2 foo1.jpg foo2.jpg This command printed only 1 jpeg file on one side of a paper. How should I do?
2
votes
2answers
704 views

How do I use `lpr` to print multiple files using 4 pages per sheet?

I create eps/png/pdf figures using python scripts. I want to use one lpr command to print several figures with 4 on each sheet of paper. The following command printed each figure on one fourth of a ...
1
vote
1answer
322 views

lpr/cups to screen instead of printer (to see how page will look)

I'd like some way of knowing how my document is going to look when it gets printed with lpr without actually wasting paper and ink. My specific problem is that I'm working with tabular text that ...
2
votes
1answer
305 views

What command is gimp using to print?

All programs/commands I attempt to print certain PDFs with (lpr, lp, Okular, Evince, Xpdf) print solid black pages. The one exception is Gimp, which allows me to import PDFs one page at a time and ...
1
vote
1answer
2k views

LPR print, can it be directly to printer?

I have a USB printer, connected to a network print server (TL-PS310U). I want to print from Debian/Ubuntu to this printer. The queue is named 2409ee3c, but when I try to use lpr, it says that I need ...
7
votes
2answers
2k views

LPR or CUPS print to Airprint printer

I've seen many a blog posting describing the process of using CUPS to present a non-airprint printer to iOS devices. However, I've dug high and low trying to find if anyone has figured out how to ...
0
votes
0answers
1k views

Running lpr through command line and through python different outcome

When I run lpr <filename>.jpg the file prints out boderless (this is what I want). When I run subprocess.call("/usr/bin/lpr " + tmp.name, shell=True) from a Python program, it prints out with ...
1
vote
0answers
118 views

lpr duplex ignoring blank page

I'm trying to print double sided with the lpr command with Duplex=DuplexNoTumble. It's printing double sided, but skips/ignores blank pages. How can I fix this? lpr -P ricoh -#1 -o fitplot -o Duplex=...
1
vote
0answers
101 views

Run itext script as cups filter

I have an itext script to apply some customisations to pdf files. These need to be done on-the-fly. I can easily do it this way : java -cp ".:itext5.jar" pdflayout input.pdf | lpr -P CP800/print ...
3
votes
1answer
2k views

Formatting file in command line for printing

Whenever I print a text file with the lpr or lp commands, the words are cut off at the end of one line and continue onto the other; for example, 'understand' would be split into 'unde' at the end of ...
1
vote
0answers
695 views

No error in lpr but printer doesn't print

I'm having a problem with printing pdf files. When I try to print them in the default mint's document viewer everything seems to work but my printer is stuck with the "Processing please wait" message. ...
3
votes
0answers
296 views

lpr ignores options specified by -o

When submitting a text file to a printer (HP Color LaserJet 4650) from a Debian 8/openbox system, the -p or -o prettyprint option is ignored. Printing the same file from a MacOS X system produces a ...
11
votes
4answers
5k views

support for utf-8 encoding with lpr

While trying to send a text file to the printer via lpr from xterm, the content was corrupted beyond recognition, the cause of which was ultimately traced to the encoding of the file. If I instead ...
1
vote
1answer
66 views

lpr with reverse video

When sending a text file to the printer from the command line (by, e.g., lpr -P printer-name file.txt), is it possible to specify that inverted colors be used by the printer (i.e., white text on black ...
1
vote
0answers
249 views

Print EPS file at original size but changed position

I'd like to print EPS files, ensuring they print at their original size. I found out that my default document viewer, Okular from KDE, will always scale to fit size, and I can't seem to find a way to ...
3
votes
1answer
9k views

How do I get the right `lpr` for cups installed on Ubuntu Server 14.04?

UPDATE It appears the lpr in the lpr package is not the one that works with cups. The questions is, how do I get the cups version of lpr installed? Old Question lpr on ubuntu 10.04 includes an ...
13
votes
5answers
56k views

How to show the CUPS printer jobs history?

I am printing some files from a remote computer to a network printer with the lpr command. It apparently worked, but some minutes later when I typed lpstat or lpq, the job had already disappeared, it ...
9
votes
1answer
12k views

Command line printing with a Samba printer requiring authentication

Is there a way to print to a Samba printer requiring authentication by providing the credentials on the command line (e.g., with lpr)? I managed to store the credentials in GNOME Keyring and when I ...
4
votes
1answer
2k views

How to print (Cups, lpr, whatever…) in grayscale in a _generic_ way?

Problem: E.g. Cups just offers options to manage colors. Unfortunately they are specific to the manufacturers model. I.e. xerox is using e.g. "XRXColor, BW", Dell "ColorModel, KGray" etc... I am ...