Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to print a PDF file from command line?

Command file line PDF print
0
Posted

How to print a PDF file from command line?

0

Use the following command: $lpr -Pprinter_name filename.pdf If you want to print a file named assignment.pdf at printer laser112, $lpr -Plaser112 assignment.pdf If you don’t specify the printer, the file is printed at the default printer. The default printer is the nearest printer from your computer. It is set in the environment variable PRINTER.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123