Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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