Go Back

Printing a PDF File on Linux

Hi there, all you Linux gurus out there; I'm seeking advice. Do you print PDF files directly from Linux to network printers? If so, what's the best technique for doing so? I've done quite a bit of googling, but so far, I'm not coming up with a lot; in fact, nothing I have tried has worked. Any suggestions very welcome. Cheers.

2 Answers
0   | Posted by Steve Ives to Other on 3/10/2023 8:27 PM
Todd Duininck
Hi Steve,

I have used pdf2ps and tiff2ps to print pdfs and tiff to printers on linux (RedHat). The printers must support postscript.

It can be done in 1 statement or 2.

/usr/bin/pdf2ps testfile.pdf testfile.ps
lp testfile.ps
/usr/bin/pdf2ps testfile.pdf | lp


3/23/2023 9:27 PM   1  
Steve Ives
Hi Tod,

Thanks for your suggestion. I actually discovered pdf2ps a few days ago and have been playing with it. It's ALMOST working, but I'm finding that when I use it on a PDF that is in landscape mode and has content close to the margin, the content is sometimes slightly chopped off at the edge. Hopefully playing around with the margin sizes in the PDF file may alleviate that.

Other than that, it's just a shame to have to go from a relatively small PDF file to a relatively HUGE (in comparison) postscript file, but it's the only solution so far.

Thanks for the input, much appreciated.


3/24/2023 6:23 PM   0  
Please log in to comment or answer this question.