The XPS file format

This is Microsoft’s new electronic paper format, an alternative to the PDF format. Office 2007 supports 'Save As' to both of these formats via Add-ins, download 'Save As PDF or XPS' here.

For more details on the XPS file format, see Jeff Bell's blog post:

Unlike the Office Open XML Formats, XPS does not attempt to capture the full structured richness of an Office document. As an electronic paper format, it is all about a high fidelity representation of the output only. Because of this, creation of an XPS document from Office is a one-way, export operation.

x1pjbHKbIboNKzbA3nhaon9IW8bDHcXllgmYXoDOnKin2hKYMh7OonrMg vwZJrNMNXXuwQTzAF3 KARCUjIwFaSCkNETg8LmuVP

Update: 6th December 2009

As there seems to be a lot of interests in the XPS file format by Microsoft, I thought I would add more details and useful links to this blog posting.

How do I open a XPS file? / How do I create XPS file?

XPS Viewer comes preinstalled with Vista and Windows 7, for older OS you need to download the XPS Viewer here http://www.microsoft.com/whdc/xps/viewxps.mspx

Useful tip 1:

Save a web page as a single .XPS file

prerequisite: XPS Document Writer - allows "Print to file" to save a webpage as a XPS file. If you are not running Vista or Windows 7 then you either need to install .Net Framework 3.0 or XPS essential pack.

I use this method when I can't save a web page as a html/mht format, usually you know when a web page cannot be saved as html when you get the following warning dialog box:

Method to save a webpage even if you see this dialog.

So instead of trying to save as html/mht, I would do a "print to file" using the Microsoft XPS Document writer printer driver. Printing a webpage works more often than saving a webpage. Long gone are the days when you have to take ridiculous number of steps to create a PDF file, this method of saving to XPS does not require Adobe Acrobat Distiller, GhostScript etc. as the webpage you see gets saved directly to XPS file which can be opened and printed later using a XPS viewer such as IE7.

Save webpage as XPS file by printing to XPS Document writer

Clicking on print allows you to save the displayed webpage as a XPS file.

Printing to XPS Document Writer is like "Print to file" operation

Now you can open the XPS file for later printing in your favourite XPS viewer application such as IE8:

Webpage in XPS file format for later printing

This article is part of the GWB Archives. Original Author: Kit Ong

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.