Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

In Safari (I'm using 7.0.2) if you browse to a website and select A) file>export to PDF you will get a different looking PDF then if you go to B) file>print>PDF>save as pdf

B) Looks like its using the CSS media query for print, but A) only looks like its using some of this information then applying more styles of its own. Does anyone know wheres these extra styles are coming from and how they can be overwritten or ignored by the page being exported?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Well, I know this is an older question, but I came upon it and thought I would answer...

There are two things that can be different here -- one, as is noted in the question, is the special set of styles used for printing. This is set up on the website you are looking at, and is not something you have control over. The second are the print options. I think by default printing of background images and colors is turned off, and it is possible to make other settings too. These are controlled through the print dialogue.

The automatic print stylesheet is a a pet peeve of mine. I've always thought a better solution was to offer a button to let visitors choose to format the page for print, rather than doing it without their control. I always want to default to giving users more control rather than taking it away.

I would assume that if you set up a special user stylesheet to be applied to all pages in the Safari preferences (normally done for folks with needs for special display characteristics such as high contrast or extra large type), those styles would be applied when printing as well. I haven't tried that out, though.

TLDR: if the website has their CSS set up to serve special styles when printing, there isn't much you can do about it. While you do have control over some elements of printing, such as printing of background colors and images through the print dialogue.

share|improve this answer

Your Answer

 
discard

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.