0

I have installed a virtual PDF printer using cups-pdf. It shows up as PDF when listing available printers using lpstat -a

Now I am trying to run a simple following command to save a simple line to a new pdf file

echo "Hello world" | lp -p PDF > output.pdf

But on reading the output.pdf using cat, it displays:

request id is PDF-7 (0 file(s))

why is it not printing "hello world"?

Waleed93
  • 103

1 Answers1

1

lp sends its output to a printer, not to stdout. For the virtual PDF printer, you should find a directory called PDF under your home directory with the output of the print job.

DeronJ
  • 112