How to install a "pdf printer"?

Is there a way to install a printer that prints to pdf?

There's a lot of discussions about this in the web foruns, but none seens to work.


If you've CUPS installed, you can easily add a "PDF Printer" by installing the cups-pdf package:

sudo apt-get install cups-pdf

or since Ubuntu 16.04

sudo apt-get install printer-driver-cups-pdf

The pdf printer provided by that package will "print" the resulting PDFs into the /home/[user]/PDF directory.


Ubuntu ships with this functionality. Try opening gedit Install gedit
(source: ubuntu.com) or another GUI text editor and clicking the print button:

enter image description here

When the Print dialog appears, select the "Print to File" printer and select a location for the PDF. After clicking Print, you should end up with a PDF file in that location containing an identical copy of what would have printed on a sheet of paper.

enter image description here