CommandLine Printing and Options. CUPS provides both the System V and Berkeley PostScript, PDF, and image files. This allows you to print from inside your applications or at the commandline, whichever is most convenient! After installing cupspdf, you can print to file with lpr P PDF. Install PDF printer sudo aptget y install cupspdf List printer names that lpr can understand Linux: How to print PDF files from the command line Sometimes you may want to print files from the command line, especially when CUPS printing of PDF files.
Ask Question. up vote 4 down vote favorite. How can I tell the lpr command (CUPS) that my file is actually a PDF? [I'm working with pythoncups, but I fail to print on the command line as well vonPetrushev Dec 19 '11 at 13: 58. add a comment 1 Answer active oldest votes. up vote 9 down vote Aug 06, 2007 Hi there, how does one print. html files to. pdf from the command line, without the resulting file displaying the html tags? lp d cupspdfprinte Jul 14, 2011 I'm having a hard time trying to print documents to PDF via cupspdf at the command line and get all of the nice formatting options that the GUI print This is a quick reference to the commands and print job options a user can use from command line in order to print documents.
Although print dialogs have evolved, its many times necessary to send a document to the printer with some extra options.