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.
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.
sudo apt install cups-pdf
at least, the new "printer" that shows up in your print menu is called simply PDF
, and when you select this printer and click the "Print" button, it then outputs the generated PDFs into this folder: ~/PDF
, with a file name such as job_217-untitled_document.pdf
. It took me a while to find them, as it looked like nothing was happening, and no dialog box came up (in typical Linux fashion: not very user-friendly!)
– Gabriel Staples
Oct 14 '19 at 22:22
sudo apt install cups-pdf
in Ubuntu 21.04.apt
automatically detects this:Note, selecting 'printer-driver-cups-pdf' instead of 'cups-pdf'
printer-driver-cups-pdf
correctly.
– ATutorMe
Jul 19 '21 at 01:34
Ubuntu ships with this functionality. Try opening gedit or another GUI text editor and clicking the print button:
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.
cups-pdf
printer is available also for applications running under wine
.
– tohuwawohu
Nov 23 '11 at 08:55
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
apt-get install cups-pdf is back for a while. In Ubuntu 19 and 20 I could use it again. Works fine. mostly. Acts like a printer (same like the Redmond workaround).
– opinion_no9 Feb 21 '20 at 22:22