You are not logged in.
Hey guys,
Just recently I added a new printer (HP LaserJet p2015) in CUPS, I thought my old Epson Stylus Photo printer was messing up certain print jobs- certain letters wouldn't print correctly and whatnot. Turns out it wasn't a printer problem but a gimp rendering problem.
I'll explain... if I want to print a .pdf file, I first have to convert the file to .ps format so gimp can read and render the file. Well the problem is that gimp is doing a shitty rendering job, of course I didn't realize this until I installed the new printer and the problem was duplicated.
I guess the question is, is there an easier way? Instead of having to mess with file conversions and relying on gimp which is primarily a image manipulation app so I'm not surprised it doesn't render precise fonts in detail. If you guys know of a program that will let me print pdf files please let me know because I haven't been able to find one. I use XPDF to view files and it does a fine job, but there's no print function. Actually XPDF has a small printer icon, and that's what I click to convert the file to .ps format.
Thanks
Last edited by w201 (2013-07-23 16:01:58)
Offline
I think you use cups for that. There's also cups-pdf, but I think it's for creating pdfs out of other formats.
https://wiki.archlinux.org/index.php/CUPS
Last edited by karol (2013-07-23 15:25:20)
Offline
What happens if you use
lpr your.pdf
??
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
I was also going to suggest lp(r), that's what I use for all my printing (I use `lp`, but as far as I know, which not be very far, these are effectively the same thing). There is no need to convert to .ps, just `lp my.pdf`.
If you really do need to convert to ps for some reason, you can use poppler's pdftops then lp(r).
Last edited by Trilby (2013-07-23 15:48:45)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I was also going to suggest lp(r), that's what I use for all my printing (I use `lp`, but as far as I know, which not be very far, these are effectively the same thing). There is no need to convert to .ps, just.
If you really do need to convert to ps for some reason, you can use poppler's pdftops then lp(r).
Yes, I've never bothered to find out what the difference between the two is, and as I learned of lpr first.
Looking into it, they have different, but very similar, option sets.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
What happens if you use
lpr your.pdf
??
I get
Error - no default destination available.Same with lp. Karol, I'm heading over to the cups wiki it's been a while since I've read it and don't remember seeing that part, but that would be great.
***EDIT***
Got LPR to work . Just had to set the LaserJet to default. I don't know what I would do without you guys :-) Thanks!
Last edited by w201 (2013-07-23 16:01:22)
Offline
I use "Evince" to view and print pdf documents. Never had any problems.
Offline
skanky wrote:What happens if you use
lpr your.pdf
??
I get
Error - no default destination available.Same with lp. Karol, I'm heading over to the cups wiki it's been a while since I've read it and don't remember seeing that part, but that would be great.
***EDIT***
Got LPR to work . Just had to set the LaserJet to default. I don't know what I would do without you guys :-) Thanks!
Just for the record, the default destination can also be wet using lpadmin.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Or via the command line for a 'one-off' use of a specific printer/device. This is the "-d" flag for lp, probably the same for lpr.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
The wiki has it all: https://wiki.archlinux.org/index.php/CU … PostScript , although I've never used it, don't know if there are other / better ways of doing it.
Offline
Just for the record, the default destination can also be wet using lpadmin.
I saw that when I looked at the man page for lpr. I haven't gotten around to learning all the terminal commands for cups.
Offline
skanky wrote:Just for the record, the default destination can also be wet using lpadmin.
I saw that when I looked at the man page for lpr. I haven't gotten around to learning all the terminal commands for cups.
Offline
Or via the command line for a 'one-off' use of a specific printer/device. This is the "-d" flag for lp, probably the same for lpr.
Actually, I think `lpr` uses "-P" for the destination ("P" for "Printer").
All the best,
-HG
Offline
w201 wrote:skanky wrote:Just for the record, the default destination can also be wet using lpadmin.
I saw that when I looked at the man page for lpr. I haven't gotten around to learning all the terminal commands for cups.
Thanks Karol. You guys saved me a crazy amount of time, just thought you should know.
Offline
Occasionally, lp prints pdf rather oddly or doesn't print them at all. One thing it often does is print things off centre but it is also more likely to print garbage. Mostly it works great, though.
Also: Okular, zathura (ctrl-p gets a print dialogue), xpdf (if you pass it the lp command I assume this would work). Okular used to be horrible for printing but has improved more than I ever imagined (or QT has finally improved) and now works fine. (It always worked but it was just very annoying.) mupdf doesn't have a print option that I can tell, though.
If you type lp and then tab in the terminal, you will see a bunch of useful commands (and a few which are entirely irrelevant, of course). lpq, lpadmin and lpoptions I find especially useful.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline