Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I'm trying to save a PDF of a page from the dailymail.co.uk website. When I open the print dialogue (in Safari and Chrome) the page looses all its formatting to become a stripped back printable version. I can see the benefit of this, however I'm wondering how to bypass this feature as I want to save a PDF of the entire page as it appears on the site.

Here is an example article (randomly selected from the home page)

Is there a line of code I can delete from the page (using Chromes Dev Tool) that will let me print the full page?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Most likely there will be a line like this in the head tag:

<link ... media="print" ... />

Just remove it through the Chrome Inspector by right clicking it and deleting it. If that does not fix it, there is most likely another one. The problem with doing this however is that sometimes it still will not render as the other ones are most likely media="screen" which are hidden on print.

Keep in mind the fact that comments are no longer hidden and therefore you can end up with >100 pages sometimes.

With this particular website, there is a print CSS, however all the other ones are media="screen" and you would need to go through and change all those to remove that attribute. (A bit pain in the @$$):

the print stylesheet

You mention you are using Chrome, so I would use the Webpage Screenshot extension and print the image as a draft (so it doesn't do photo quality).

share|improve this answer
    
ah so browsers will disregard all SCREEN items on print? good to know - thanks! –  OrangeBox Aug 17 '12 at 6:35
    
@OrangeBox, see this W3Schools article for more info on CSS media types. –  Alex Aug 17 '12 at 10:27
1  
@Alex see this W3Fools article for more info on why you shouldn't use W3Schools. –  Cole Johnson Aug 17 '12 at 19:32
add comment

Ahh, is there a PrintScreen (PrtScrn) button on your keyboard? Paste the image into Word (etc) and save as PDF from there?

Failing that, there are any number of screen capture tools.

(Granted this will give you a PDF of an image, not of indexable text. But since you're taking it from a newspaper site, I guess you're not so worried about having search-engines index it. And since it's just one page, the PDF browser text-search probably isn't so imporant.)

share|improve this answer
add comment

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.