82

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.

Student
  • 12,236

3 Answers3

124

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.

Zanna
  • 72,312
tohuwawohu
  • 7,502
26

Ubuntu ships with this functionality. Try opening gedit 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

karel
  • 122,292
  • 133
  • 301
  • 332
Nathan Osman
  • 32,495
3

Whenever you print , there is already an option for "print to file". I hope you are talking about that.. if not then please elaborate your question

rrj
  • 411
  • 1
  • 4
  • 8