Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

How can I turn a Web page into a PDF?

I just got a new iMac, after years of working on Windows XP systems, and a pal was telling me that one of the coolest features of Mac OS X is that you can redirect any printout and turn anything into a PDF. That's awesome because I constantly send Web pages to clients and PDFs will be a lot more reliable than the HTML source. Can you show me how to do this?


Dave's Answer:

Your pal is right that this feature is one of the coolest things about the Mac operating system, something that Windows users can't really imagine and something that, rather to my surprise, most Mac OS X users, whether they've got a MacBook, iMac or even Mac Mini, don't know about either.

The trick is that the way the Mac renders pages you want to print is by converting them into a language called PostScript, which turns out to be the basis for PDFs: Portable Document Format. Since the printer driver (the operating system utility that controls printouts) has to convert whatever you want to print into PostScript anyway, Apple just went ahead and included the ability to save that intermediate PDF document in the OS.

I'll show you how to do this for Apple's Safari Web browser, but it turns out that it's exactly the same in any Mac application that lets you print. Very, very cool.

Load your favorite Web page in Safari, then choose File --> Print...:

mac safari file print

Choosing that brings up a complex window with lots of different choices to customize your printout:

mac safari file print dialog

What we seek is on the lower left corner: I've highlighted it with a red circle, above. Click on "PDF" and you'll see a new little menu pop up:

mac safari file print dialog pdf

Lots of options, I always just use "Save as PDF...". Choose that and you'll get a standard Save File window:

mac safari file print dialog pdf save

I suggest you rename the file, but you can stick with what it suggests if you don't mind long, funky filenames. :-)

One final point: notice the "Security Options..." button. Click it:

mac safari file print dialog pdf save security

Yes, without even having to leave the printout window, you can set a password for the resultant PDF, to make your clients feel more important and for you to protect potentially sensitive PDF document information (like taxes or banking info).

Hope that helps. Play with this feature in different programs, you'll find that, like me, it's a big part of why Mac OS X is such a pleasant operating system to work with.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

Thank You! Thank you! I just made a PDF of this article using Leopard and it worked just the same.

Posted by: Kristin at January 3, 2009 9:03 AM

This is a feature that I cannot live without. I've used it for years and take it for granted that it's native on the Mac. I do have to switch to PC from time to time and it's definitely a feature that is needed in Windows. After using this feature for so long, when I'm working on Windows, I'm heavily impaired. ;)

Posted by: Jerid Hill at January 3, 2009 9:19 AM

I wonder how quickly Adobe would sue MS if it added PDF write support? Luckily I use cutepdf when I'm on a PC.

Posted by: Luis at January 4, 2009 4:53 PM

shucks. thought you were going to provide some webpage-to-pdf advice for PC users too.

Posted by: Trevor at January 4, 2009 7:56 PM

One more note, just FYI: Firefox on the Mac has issues printing frames. You may get a blank first page with printing that starts on page 2 and/or the web page is just plain incomplete. These issues carry over to the "Save as PDF" feature, but printing from Safari usually fixes this.

Posted by: Jan at January 5, 2009 10:57 AM

Nice advice. For PC users cutepdf seems to do the job well

Posted by: Dan Murray at January 11, 2009 4:59 PM

If you're on a PC and you have one of the "Professional" versions of Adobe Acrobat installed, you can also print to a PDF, without any third-party software. The print-driver is installed when you install the application, and it just shows up as one of your printer options/icons. Don't forget, also, that along with one of the Pro versions of Acrobat, you can also capture an entire web site by using the "File > Create PDF > From Web Page" option.

Posted by: Bob Sheairs at January 14, 2009 12:16 PM

Well, maybe you do have to download third party software, like the frre PDFcreator program, but at least it's on a PC and I won't have to own a Mac. Never again.

Posted by: Robert at January 14, 2009 10:53 PM

There are a lots of Pdf printer drivers available for windows to do the same. You can print any document into pdf even on linux(I tested it on Ubuntu only). Or open anything in sun's Openoffice.org and click convert to pdf.

Posted by: kanwaljit at January 17, 2009 6:53 PM

I've been doing this for years on my PC with Win2PDF and PDF995. In fact there are many programs for the PC that will print and even append to pdf, some even allow you to annotate existing pdfs.

Not sure how this is a MAC only thing.

Posted by: Richard at January 28, 2009 1:25 PM

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









snow leopard pre order advert amazon

Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2009 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.