How to use it

Print as you normally would, pick the Save as Web Page printer, and choose where to save. Here's everything else worth knowing.

Printing a web page

  1. Open your document

    In Word, Excel, your browser, a PDF reader or any other program.

  2. Print it

    Choose File › Print or press Ctrl+P. In the printer list pick Save as Web Page, then press Print.

  3. Choose a name and place

    A Save window appears with the document's name already filled in. Pick a folder, and under Save as type choose Web page (.html) or PHP page (.php). Click Save.

  4. Check it

    The page opens in your web browser so you can see how it looks. A message by the clock also tells you where it was saved; click it to open the page again.

The page size, margins and orientation in the print window (for example Landscape or A4) carry over to the exact copy. Printing only some pages works too.

Settings

Right-click the blue page icon next to the clock and choose Settings… (or open Web Page Printer settings from the Start menu).

SettingWhat it does
Save printouts as.html for any website, or .php for websites that run PHP (most shared hosting does).
LayoutExact copy looks just like the printed pages. Simple web text makes headings, paragraphs, lists, tables and pictures that fit any screen.
Include the document's fontsExact copies carry the fonts used in the document so they look right everywhere. Turn it off to use similar fonts the visitor already has (smaller files; see fonts and licences).
Ask me each timeOn: a Save window asks for the name and folder. Off: pages go straight into the folder you choose (normally Documents\Web Pages).
Keep everything in one fileOn: pictures and fonts are packed inside the page, so there's only one file to upload. Off: you get the page plus a folder named page-name_files, which loads faster for big documents.
Open after savingShows the new page in your browser straight away.

Exact copy or simple text?

Exact copySimple web text
Looks likeThe printed pages, page by pageA normal web article
On phonesPages shrink to fit (zoom to read)Text reflows to the screen
File sizeLarger (fonts and pictures)Small
Best forFlyers, posters, menus, forms, certificates, anything with a careful layoutArticles, letters, notices, reports, minutes
Text can be selected and found by search enginesYesYes

See both side by side on the examples page.

PHP pages

A .php page shows exactly the same document as the .html one. The difference is that it can pull in your site's own header and footer. Put these two files in the same folder as your saved pages:

  • site-header.php: your logo and menu (whatever should appear above the document).
  • site-footer.php: your footer (contact details, copyright).

Each page includes them if they exist and simply skips them if they don't. A minimal header could look like this:

<!-- site-header.php -->
<header style="padding:16px 24px;background:#1e3a8a;color:#fff">
  <a href="/" style="color:#fff;font-weight:bold;text-decoration:none">My Club</a>
  <a href="/news/" style="color:#fff;margin-left:16px">News</a>
</header>

The page's title is set at the very top of the file ($page_title = '…';), so your header can use it too, for example <?php echo $page_title; ?>.

.php pages only work on a web server that runs PHP. If you open one by double-clicking it on your computer, the browser can't run PHP; open the .html version to preview instead, or just upload it.

Putting it on your website

  • Hosting control panel (cPanel, Plesk and similar): open File Manager, go to your site's folder (often public_html), and click Upload.
  • FTP (FileZilla, WinSCP): drag the file into your site's folder.
  • Website builders (WordPress, Wix, Squarespace): use an “HTML” or “Embed code” block and paste the page, or upload the .html file as a media file and link to it.

If you saved as page plus folder, upload the page and its _files folder next to each other.

Your page's web address is your site's address plus the file name, for example your-site.example/newsletter.html. Tip: use short file names without spaces, such as spring-newsletter.html.

Turning XPS files into pages

Already have .xps or .oxps documents? Right-click the blue page icon and choose Turn an XPS file into a web page….

Tips for good results

  • For the simple layout, documents with one column of text and clear headings work best. Use Word's heading styles or larger, bold text for headings.
  • Big photos make big pages. Shrink or compress pictures in your document first (in Word: Picture Format › Compress Pictures).
  • Printing from a web browser? Turn off Headers and footers in the print window to leave out the date and web address.
  • Print documents one at a time and save each before printing the next.