[PLUG] Printing pdf files from the command line

Aaron Burt aaron at speakeasy.org
Mon Sep 22 11:00:03 UTC 2003


On Mon, 22 Sep 2003, Rich Shepard wrote:
>   I suspect that the only way to print a pdf file is to display it in xpdf
> or acroread and print it from there. Is there a one-step means of printing
> the file directly from the command line?
>
>   Yes, I could run it through pdf2ps then print the resulting postscript
> file, but that puts another, much larger, file on the disk. I'd like to feed
> output directly to the printer.

  pdf2ps file.pdf - | lpr

Specifying an output file of '-' sends output to stdout, which is then
piped to lpr, which by default sends its stdin to the printer.


Glad you asked,
  A "ceci ne pas un |" B





More information about the PLUG mailing list