Save web pages as PDF with Firefox 3
Posted by Percy Cabello on October 18th, 2007 • Tags:
ShareThis

It’s not clear at this point whether Firefox 3 will include an option to save web pages as PDF files. It is in the PRD (product requirement document) but it could get cut for time constraint reasons.

Fortunately, the backend necessary to make this happen is already in place and Firefox 3 will be able to save pages as PDF. It’s just that the necessary user interface may not be there.

printpdf extension

Stuart Parmenter, the Firefox developer who made it possible has released printpdf, an extension that adds a Print to PDF… option to the Tools menu.

Select it, set a name and location for the PDF to be saved and Firefox will print the current web page as a PDF file.

It’s not perfect though. I made a couple of tests and found that the generated PDFs are noticeably larger (3x – 4x) than those produced with PDFCreator, an open source PDF printing utility for Windows and long time favorite. Printing isn’t perfect either as some images where left out in one of my tests.

But this is a first version and it seems that at least it will be available as an extension if the necessary UI doesn’t make it to Firefox 3 final.

Get printpdf from Mozilla’s Bugzilla. Remember you will need a recent Firefox 3 nightly to try it as well.

Comments
antistress said on October 18, 2007, 1:43 pm:

great news for windows users, but ubuntu 7.10 has it for any application !

Ian Leader said on October 31, 2007, 5:29 am:

Having the option to print on the menu (rather than changing printers to PDFCreator) is handy, but for me, it would be far more useful to be able to create and email that PDF in a single menu action – that cuts out quite a few more mouse clicks.

A deep look to Firefox 3 Beta 3 : Mozilla Links said on February 11, 2008, 5:37 pm:

[...] performance. The change also enables easy PDF printing capabilities but it is only possible through an extension right now [...]

Ethan said on March 3, 2008, 5:51 am:

Seems like a needed feature. What’s with the extension putting the menu item in the Tools menu? What was wrong with the File menu, where File operations are usually selected?

Berger said on April 23, 2008, 5:01 pm:

I agree with Ian. A save as pdf button would be great!! For every email marketing layout or landing page that I create, the only way it gets to my clients and/or proofed by our team is via PDF.

James Joseph said on April 25, 2008, 11:02 am:

Is it need to have Adobe reader in the local workstation to save

Peer said on May 29, 2008, 10:27 am:

Great Idea. But what is most needed is the possibility to print/save a web page exactly as seen on screen. Many websites these days have very silly stylesheets and many other useless ideas that garble print output. Those are useless for refrerence purposes.

So best would be to have the choice between: save-to-pdf-exactly-as-seen-on-screen and simulate-print-and-save-to-pdf-whatever-garbage-comes-out.

Haudy Kazemi said on June 18, 2008, 9:43 pm:

“Great Idea. But what is most needed is the possibility to print/save a web page exactly as seen on screen. Many websites these days have very silly stylesheets and many other useless ideas that garble print output. Those are useless for refrerence purposes.”

An extension called Screengrab will let you save a screenshot of a whole webpage, even if part of it is off the bottom of the screen. Essentially Screengrab will scroll the page up and down to capture the whole thing, and then save it to a PNG file. While this is not as ideal because it is not a searchable, editable document, it could be used to meet the need you identified.
Screengrab: https://addons.mozilla.org/en-US/firefox/addon/1146

Kate said on June 22, 2008, 3:40 am:

This extension doesn’t produce exact copies of the web page as a PDF, what’s more it can take ages and the file sizes are huge. What’s required is the Internet Explorer ability to save as an MHT file complete, which used to be available to Firefox as a MAF file.

MAF is incompatible for FF after 1.5, but if a similar extension worked for FF3 it would solve a lot of problems. There is a “tweaked” version of MAF that’s supposed to work up to FF3, but opening saved files just gives blank pages. MAF couldn’t save the weird and wonderful web pages cooked up with CSS and other methods, anyway. So good riddance to MAF, and long live its replacement, whatever it is.

I’m not Kate said on August 8, 2008, 5:07 pm:

Kate, there exists unMht, an extension for FF3 which manages MHT files quite well.

Johan said on January 9, 2009, 11:33 am:

Here is a link to the extension:
https://addons.mozilla.org/en-US/firefox/addon/5971

And “Print to PDF” is located in the “File” menu.

Michael said on June 22, 2009, 8:46 pm:

The problem with all these soft-printer-style PDF creators is they don’t maintain the clickable links — my guess is they can’t because of how printing works. Eg if a word is clickable in HTML, the PDF will show it as blue/underlined but it will not be clickable any more — it’s flattened. This is crucial for research and archiving. Unfortunately, the only way to get this to work is the special plugin for IE that comes with Acrobat Pro (the one that creates a PDF toolbar in IE, not the PDF printer), although even that often messes up the layout. I have been looking for years (literally) for a way to do this in Firefox. I can’t believe that Adobe or someone else hasn’t done this for Firefox yet. Other archiving methods tend to have other important problems (eg add-ons like Scrapbook, Zotero, MAF, unMHT etc). It would also be great if an archiving method saved the original URL, title and access date as metadata (Savewithurl and Saveuri almost do that but not quite). We live in hope!

Hoosierdaddy said on July 30, 2009, 12:22 pm:

This is what you want peeps.

https://addons.mozilla.org/en-US/firefox/addon/7528

Allows you to save an entire page or just the windowed portion as a PDF. I’ve been using it for a while now and it works great. Very sweet extension.

Ethan said on August 17, 2009, 10:11 pm:

Hoosierdaddy, no that is not what we want actually. That extension will save an image of the web page in PDF format. There is no textual data retained, so it is not searchable, there are no hyperlinks, etc. That extension will not do.

Rob said on January 22, 2010, 8:52 am:

Actually, what I would like to see is an addon that allows you to save a page to PDF, and includes the link urls and such, since PDF allows embedded links, the link functionality of page should be savable into the PDF.

dani said on April 13, 2010, 6:46 pm:

I want an addon pdf create o software that saves links and wich can do look up