Ubuntu – Print pdf file directly without opening it


Currently I open the file in document viewer and select print etc. Is it not possible to right click the file and "send to" the printer?

Best Answer

  • Use lpr to print PDF files directly from the command-line

    I don't think you can do that directly, no. However, there's a command line program called lpr which sends pdf files directly to the printer. So if you have doc.pdf, you should be able to print it with lpr doc.pdf (assuming you're in the right folder on the command line).

    You can also view the printer queue with lpq - besides the queue, this shows which is the default printer, and what its status is...

    See the other answer for how to add lpr to the right-click menu.

  • Related Question