Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For my personal records (e.g. receipts), I like to print a web page in Firefox using CUPS print-to-pdf. This works great when the page layout is narrow. However, if the page is too wide, the output is cut-off on the right. I have tried all the possible options for shrink to fit, scale: 100%, and page size/orientation, but depending on the page's HTML/CSS, the right is still cut-off.

Ideally, I would like to use a tool which can capture the entire page as-is (at the window's width; not formatted for paper), and output it in *.pdf format. Does something like this exist?

Preferred OS: Linux, but I can also use Windows 7.

share|improve this question
Have you tried add-ons such as iWeb2x or Print edit? – Tog Nov 4 '11 at 22:17
I just tried iWeb2X and PrintEdit, as you suggested. iWeb2X seems to have issues with CSS and displays certain elements incorrectly. PrintEdit is a great tool. It looks like it will save me some time, as I sometimes manually delete elements using FireBug. There are a lot of great tools out there for printing to PDF, but none with an option to output the page as-is, without paper dimensions/margins. – iglvzx Nov 4 '11 at 23:37
You may try to use the following extensions: Firebug on Aardvark to play with HTML/CSS before printing; Screengrab to print as PNG image. Aardvark works fine with FF7 if you set option to ignore compatibility check; Screengrab is End-Of-Life, don't know if works with new FF, works fine with FF3.6. – jakub.g Nov 7 '11 at 0:19
up vote 3 down vote accepted

Abduction! seems to work well,
if you dont mind .png.

share|improve this answer
This seems to be the simplest solution right now to capture the whole window accurately. It's too bad that no tools exist to output *.pdf in the same manner. – iglvzx Nov 7 '11 at 18:30

Try wkhtmltopdf. It's packaged at least in Debian/Ubuntu.


To use this software download the latest static release unpack it and run it like

wkhtmltopdf myhomepage.pdf

for a list of available options see

wkhtmltopdf --help


  • Convert web pages into PDF documents using webkit
  • Adding headers and footers (static version only)
  • TOC generation (static version only)
  • Batch mode conversions
  • (Linux) No longer requires an XServer to be running (however the X11 client libs must be installed)
share|improve this answer

You could maybe try the Chrome browser with “Print to PDF”.

See Using print preview.

share|improve this answer

Save as PDF might work. That's a firefox addon that can save any page to a PDF file.

share|improve this answer
Care to elaborate on what "This" is, because just posting a link isn't very helpful. – Ivo Flipse Nov 12 '11 at 17:56
This does not save the current iteration of the page. It appears to send the URL to where it is then processed using their servers. It also watermarks the output. Not really what I was looking for. – iglvzx Nov 14 '11 at 0:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.