Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I try to save a page as a PDF file but it loses the background colors. I figure this is a standard setting for a printer, but when I save as a PDF I prefer the background colors to stay. How can this be done?

share|improve this question

Firstly, I'm not sure it has any relation to Ubuntu... :)

Secondly, there may not be a good generic way to save a website page to PDF while keeping the background - think of pagination, page numbering, titles etc. Think of white text on dark background. In many cases the results won't look good - that's why browsers fall back to white background. Also, many sites use separate stylesheets for printing, which additionally remove elements which are not needed on paper - navigation, menus etc.

What you need is a way to make a screenshot of the whole page - this will preserve all detais of the page how you see it. There are plugins for Firefox to do this - I suppose there may be something for Chrome too.

The Firefox plugin I used is called Screengrab

a sample screen grab

share|improve this answer
OK thanks. But I in fact only need my table rows to have colors... which they have online but not in printed form. I know I can activate this in other browsers, but not in Chrome for some reason (sorry if this is no Ubuntu issue)... – user6019 Aug 31 '11 at 2:59

Your Answer


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