Way back in Episode 2 of the podcast, we mentioned that, "Linux provides the ability to create (print) PDF files directly from almost any application, but not from within Firefox! Open the same web page in Konqueror, for example, and -- no problem." That was true in 2007 when we recorded that episode. In today's Linux, you simply choose the "Print to File" option right there in the Print dialog box, and select the PDF option.
Most modern browsers use exactly the same print dialog box as any other application. A notable exception is the Chrome browser. It uses its own dialog box, and the selection Save as PDF is provided as an option.
The advice in the remainder of this document still applies if you are using an older version of your Linux distribution, or if you have a browser that behaves the way Firefox did "in the old days" of Linux. With this kind of application (we'll be nice and call them "classic" browsers) in order to be able to create PDF files from within any application that can print, there is an add-on package you will need to install. From within your package manager, search for and install the package "cups-pdf."
In Episode 8 of the podcast, listener Mike P. described printing from an old version of Firefox in an old version of KDE with the cups-pdf package installed.
Here is Mike's suggestion:
Mike continues: From now on, whenever you choose Postscript from the Firefox printer dialogue, the kprinter option will be remembered. This will call up the kde printer dialogue and you can choose Print to PDF (file) or whatever else is available.
As an alternative, you can create a virtual printer that allows you to "print" PDF files. Here is how to add the printer to KDE once cups-pdf is installed. In 2006, (Linux Neophyte wrote an excellent post on how to add cups-pdf under Gnome 2.)
Theme music for the Going Linux podcast is generously provided by Mark Blasco. https://www.podcastthemes.com
Going Linux Podcast by Larry Bushey is licensed under a Creative Commons Attribution 4.0 International License.