In Ubuntu, regardless which browsers or applications you are using, as long as it supports the “Print” function, you can quickly create a PDF, postscript or SVG file of the work you are doing (or the webpage that you have come across). In the application (say Google Chrome), go to the “Print” option in your menu. Select “Print to File” in the popup window. You will see an option for you to save the file as PDF, Postscript or SVG. Choose the option you want, set the filename and the save location. Lastly, click on the “Print” button.
That’s it. The PDF quality might not be the best, but the process is very fast and it just works. Note: This trick was tested on Ubuntu 10.04 and 10.10. It should work on other Ubuntu derivative distro as well. I have not tested it on older version of Ubuntu and all other distros. If you are using a distro other than Ubuntu, test it out and let me know if it works. Thanks to @Carl Draper for the trick.