You are not logged in.

#1 2013-07-23 15:16:54

w201
Member
Registered: 2012-10-04
Posts: 289

[SOLVED] Someone Please Recommend a Good PDF Printing App

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

#2 2013-07-23 15:24:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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

#3 2013-07-23 15:24:30

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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

#4 2013-07-23 15:33:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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

#5 2013-07-23 15:47:23

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

Trilby wrote:

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

#6 2013-07-23 15:52:59

w201
Member
Registered: 2012-10-04
Posts: 289

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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!

Last edited by w201 (2013-07-23 16:01:22)

Offline

#7 2013-07-23 16:08:00

myrlin
Member
Registered: 2010-06-11
Posts: 300

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

I use "Evince" to view and print pdf documents.  Never had any problems.

Offline

#8 2013-07-23 16:10:23

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

w201 wrote:
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

#9 2013-07-23 16:13:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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

#10 2013-07-23 16:15:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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

#11 2013-07-23 16:21:04

w201
Member
Registered: 2012-10-04
Posts: 289

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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

#12 2013-07-23 16:23:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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.

https://wiki.archlinux.org/index.php/CU … figuration

Offline

#13 2013-07-23 16:26:40

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

Trilby wrote:

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

#14 2013-07-23 16:45:09

w201
Member
Registered: 2012-10-04
Posts: 289

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

karol wrote:
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.

https://wiki.archlinux.org/index.php/CU … figuration

Thanks Karol. You guys saved me a crazy amount of time, just thought you should know.

Offline

#15 2013-07-23 17:40:47

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Someone Please Recommend a Good PDF Printing App

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

Board footer

Powered by FluxBB