Questions tagged [printing]

Printing is a process for reproducing text and image, typically with ink on paper, using a printer or a printing press.

Filter by
Sorted by
Tagged with
39
votes
1answer
30k views

Convert pdf to a different page size (US Letter -> A4)

I'm trying to print a simple US Letter document, but for some reason, I just cannot manage to fit it properly onto A4 when printing multiple pages per-list. I have tried converting the pdf using: gs -...
26
votes
2answers
2k views

CUPS prints n² as many copies as I want

This has baffled me for a few weeks now. I have a Kyocera network printer set up in CUPS, and whenever I try to print to it I seem to end up with n² as many copies as I request. That is, I try to ...
20
votes
3answers
16k views

How can I print well formatted code

Similar to using markdown on Stack Overflow to create monospace output, how can I do that for my programs. I tried lp filename.txt and was pleasantly please to find that it was able to use the local ...
18
votes
5answers
5k 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? ...
18
votes
1answer
6k views

Evince does not show printers

I have a problem with evince PDF-document viewer. I have a printer that is well configured with cups, and I can print PDFs from other PDF viewers such as Okular, but not with Evince. There are simply ...
16
votes
4answers
6k views

Pretty print mails from mutt?

I know that I can configure a print command in Mutt via .muttrc, e.g.: set print=ask-yes set print_command="..." But what print command should I use for pretty printing? Well, a2ps output seems a ...
13
votes
2answers
20k views

How do I make “black&white” the default?

When I print something (Firefox 5 but also other apps), the option "color" is always set to "Color (CMYK)". How do I make "monochrome" or "black & white" the default? This is a Kyocera FS-C5100DN ...
12
votes
3answers
9k views

What is “Print to File” and can it be used from command line?

When you select "Print to File" in a Gnome print dialog (not cups-pdf): ... what is the actual command that gets executed? (I'm interested in the postscript variant, as on the image) On the other ...
11
votes
3answers
14k views

Is there an alternative to CUPS?

When printing with Linux is there an alternative to using CUPS? After using it for a couple of weeks printing suddenly stopped working. The 'processing' light would come on and that would be the end. ...
11
votes
6answers
6k views

How to merge 2 PDF files with interleaving pages order?

I've got a double-side-printed multipage document to scan with a linear bulk scanner. So, as the result I get 2 PDF files: one containing all odd pages and the second containing all even pages. I need ...
11
votes
3answers
18k views

Mount printers at /dev/usb and still use CUPS

Due to a new version of CUPS, I suddenly lost the direct path to my printers that was previously available under /dev/usb/lpXXX. I used this to print directly from the command line. echo "test" > /...
10
votes
4answers
1k views

syntax_highlight <source_file> | lpr

Does anyone know of a simple way to produce the PostScript corresponding to a syntax-highlighted version of a source file that can be piped directly to a PostScript printer? As the wording of the ...
10
votes
2answers
6k views

Do CUPS clients need to have drivers installed locally?

If I use CUPS, should clients have drivers installed locally? Example: say we have 1 Networked PC with Linux, 1 Print Server (or CUPS, Samba Print server) If the Linux PC wants to print a document ...
10
votes
1answer
27k views

How can I set up a usb printer as a network printer using a linux server?

Basically right now I have a USB only printer, it's very nice. There are 5 people in my household and we all are constantly wanting to use the printer. Windows has a built in way to share the ...
10
votes
2answers
5k views

Zathura: how to print specified pages

I would like to print some pages from a large pdf file within Zathura (typically the current, or a range of pages). What is the syntax to do that? Edit: The solution was quite obvious... By the ...
10
votes
2answers
3k views

Using a shell script as a virtual printer

I have a shell script that takes a PDF file as an argument and prints it with additional printer specific options. How can I add this script as a virtual printer that can be selected from the GUI? ...
10
votes
3answers
6k views

CUPS remote printer entry is stopped locally

My local CUPS daemon on my laptop has an entry for a remote printer on my CUPS server. My local CUPS daemon thinks this printer is stopped, but it's not. The only interface CUPS gives me to manage ...
9
votes
2answers
15k views

Stop printer jobs from terminal

I am working with an old CentOs version (5.0) that is not really my machine. Recently, for some dark reasons, I have problems in printing. The jobs rest in queue, and I cannot cancel them from the ...
9
votes
2answers
25k views

List All Network Printers (including ones not installed)

It is easy to list the printers you've already installed with this command: lpstat -a However, this does not list network printers you have NOT installed. nmap will scan for all open ports on the ...
9
votes
3answers
19k views

“Filter failed” from hplip

Problem Description - Unable to print Device name : HP LaserJet M1005 MFP USB printer OS : Linux 3.8.13-1-MANJARO #1 SMP PREEMPT x86_64 GNU/Linux Error Description : Cups is working well and fine. ...
9
votes
2answers
15k views

Duplex printing options using lp or lpr

The default options for a Brother MFC-9340CDW printer, are reportedly (e.g. querried via lpoptions -l) set to: PageSize/Media Size: *A4 Letter Legal Executive A5 A6 B5 JISB5 JISB6 EnvDL EnvC5 Env10 ...
9
votes
3answers
15k views

Print job “Held for authentication”

Following the instructions here, I have installed a Samba print server on an ARM-based Udoo-quad running Udoobuntu 12.04 LTS. The Samba server is working, and (after setting guest ok = yes in the ...
9
votes
1answer
6k views

Do any “All In One” Printer/Scanners work on Linux?

Mod note: The entire network is pretty against shopping recommendation questions; there was an attempt to edit this one to avoid it, but it seems to have failed. The goal is "how do I decide which ...
8
votes
3answers
7k views

How to print specific pages from the command line?

Is there a way to send a PDF file (or files) to the printer via the command line, but print only, say, odd-numbered pages? E.g., lpr -{some option} *.pdf Or perhaps {some command to get odd-numbered ...
8
votes
2answers
6k views

Get directory from which script was called from

I have a script doSmth in /usr/bin. Is it possible to get and print the directory the script was called from? So if I call doSmth from /home/me the output will be /home/me.
8
votes
3answers
4k views

Print an SVG from the command line

How can I print an SVG, already scaled to a4 size, from the command line? I tried using lpr, but instead the printer just printed out the actual XML of the file, which isn't what I wanted.
8
votes
1answer
3k views

Printing webpage using browser via CLI

I want to automate printing. From URL in text file, the webpage is printed. I have tried using wget and the results are very inferior than when printed via browser. Somehow FF and Chromium both manage ...
8
votes
2answers
29k views

Get list of installed printers

Inside of a script I send a certain file to print using the lpr command on an user-selected printer. The list of the printers, from which the user selects the one to use, I get using the lpstat -a ...
8
votes
2answers
7k views

How to print file with the PCL escape sequences?

I have CUPS and use a program that produces the raw PCL format of the document I want to print. I have no problem printing a plain text file as lp filename but when I give a file that has PCL or ESC/...
8
votes
1answer
5k views

How to print from iPad to CUPS?

I would like to print from an iPad2 to the office printer running on CUPS. After following a couple of cookbook style cheat sheets, printing from the iPad still does not work. the iPad sees the ...
8
votes
1answer
143 views

How can I tell what formats a printer accepts?

If I am printing programmatically using cups.h, how do I find out what formats the printer will accept? For example, HP printers probably accept HPGL, but others may not. Some of the common possible ...
7
votes
2answers
2k views

How to change default “reading” program?

Right now, when I run man (something), less is used to view it. However, on Mac OS X, I really like scrolling with touchpad instead of up/down or page-up/page-down buttons. Is there a way to just ...
7
votes
1answer
4k 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-...
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 ...
7
votes
4answers
12k views

printing problems with DDST (aka PCL6) printer RICOH Aficio SP C240DN

I'm having big problems printing on a RICOH Aficio SP C240DN (a color laser printer). CUPS/OpenPrinting doesn't have a driver for exactly this printer. There are similar numbers but not 240DN. It ...
6
votes
2answers
29k views

Print text from terminal

I would like to use a Linux distro without a desktop environment, but I need to print out homework that I type up. I could always email it to myself and print from another computer, but it would be ...
6
votes
2answers
7k views

CUPS printing protocols: what's the difference between RAW/JetDirect - IPP - IPP14 - LPD?

I am debugging some printing issues on a small LAN, and although I'm fairly sure the issues I'm facing are not related to cups itself, I have been tinkering with the printing protocols that both CUPS ...
6
votes
5answers
15k views

How can I print half of a page to a pdf file?

I have a one page PDF file with scanned documents. I need to send only top half of this document to someone. How can I generate a new PDF document with only the top half of the original page, without ...
6
votes
5answers
10k views

Why does the column command not align columns properly?

In another question I asked on how to hide all .pyc files when using ls, Ignacio suggested the following: This, as I mentioned above, doesn't work precisely, since the output is occasionally ...
6
votes
3answers
16k views

Don't require root to add printers

When a user wants to add a new printer it's asking for a root password. I have an LTSP environment and the system is asking for a root password all the time; it's not asking even for a sudo'ed user's ...
6
votes
1answer
968 views

How shall I generate a pdf file instead of a ps file using enscript?

I was wondering why the following generates a ps file not a pdf file? How can I make it generate a pdf file? Thanks. $ enscript -B -PPDF code/bloom.c -o bloom.pdf [ 2 pages * 1 copy ] left in bloom....
6
votes
2answers
5k views

lpr: How to specify the page range “3 to end”?

The CUPS doc does not say how to specify a page range such as "3 to end". Can this be done without knowing the number of pages of the document? So something like lpr -o page-ranges=3-end -P myprinter?
6
votes
3answers
8k views

Can (CUPS) ppd files for Mac OS X be used for linux?

I am looking at buying a printer (actually an all-in-one I prefer for the features it provides, but I want to focus on the printer part here) which does not provide linux drivers, but does provide Mac ...
6
votes
3answers
2k views

How to print (part of) a man page?

The question is: how do you print only part of a man page? Currently I do zcat manpage.1.gz | vim - and just remove everything I don't want to print. Then I pass that through groff and lpr. Are there ...
6
votes
1answer
1k views

CUPS - install once, use another printer (of the same model) without re-configuring problem

For example I have "HP 1020 LaserJet" local USB printer successfully installed on a CUPS. It uses one connection. If I get another HP 1020 LaserJet printer it wouldn't print, I am having to modify ...
6
votes
1answer
7k views

How to print from remote over SSH to local LAN printer?

OK, so it is fairly straight forward to to run apps from a remote server on my local X screen as though they were local apps. The question is, when trying to print, the remote app only sees printers ...
6
votes
1answer
62 views

How can I limit engagement with a large office LAN?

I work in a large office building with hundreds of other computers on the same LAN. I don't have any reason to communicate with most of these computers, and when I do, it's always on an "opt-in" basis ...
6
votes
2answers
467 views

How to reverse-engineer a CUPS printer/print job?

I have quality issue with PDF printing local (CUPS) vs. Google Cloud Printing. (GCP is better, with CUPS I get wrong size, wrong characters, wrong fonts. So I want to know what CUPS does!) The ...
6
votes
1answer
2k views

How to print password protected pdf with cups from command line?

I have a *.pdf file that is password protected. I have the password and I can view the pdf with mupdf. However, printing with CUPS via lpr -P PRINTERNAME *.pdf does not work. All my printing is done ...
6
votes
1answer
3k views

Dot Matrix printer setup in Debian

I am using Debian which is similar to Ubuntu. They have 7 dot matrix printers, some of which are very old (example), which have worked since 1979 and are faster than many inkjets at printing text. ...