次の方法で共有


Save as XPS in Office “12”

Recently, I have had a number of questions on this and I am happy to confirm that Office “12” will support a native Save as XPS feature in Word, Excel, PowerPoint, Access, Publisher, Visio, OneNote and InfoPath. This, of course, raises a whole bunch of additional questions for me to answer:

- What’s XPS?

- Why would I want to use XPS?

- Isn’t Windows already doing this?

- How does this relate to the Save as PDF feature?

- How do I view an XPS document?

I’ll take these in order, but first, a picture (from a current build of Word):

What is XPS?

XPS, or the XML Paper Specification, is Microsoft’s new electronic paper format for exchanging documents in their final forms. This Office feature provides a one-way export from Office client applications to an application- and platform-independent, paginated format. More information on XPS is available on Andy Simonds’ blog and at https://www.microsoft.com/whdc/xps/.

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.

Why ?

XPS is an electronic paper format built around the same Open Packaging Conventions document structure as the new Office file formats. This means a Zip container and XML content. (Brian Jones writes lots on Office’s use of the Open Packaging Conventions.) As such it plays well with other technologies like Microsoft Information Rights Management (IRM) and is open to developers to read and write, using APIs in the Windows Presentation Foundation or any other tools capable of working with XML and Zip. This openness makes XPS convenient for a range of scenarios in which it is useful to inspect or modify the contents of the “paper” programmatically.

How does this relate to the XPS print driver?

The Windows Digital Documents team is delivering a print driver with Windows Presentation Foundation that will enable all applications that can print to create XPS files. The support for XPS output in Office “12” goes beyond what is typically passed to a printer, including the supporting information to enable, for example, working hyperlinks, searching, efficient representation of transparency and gradients, accessible documents, and document rights when the source document has restricted IRM rights.

So Office is supporting two electronic paper output formats?

Yes. We think choice is a good thing.

How do I view an XPS document?

With an XPS Viewer, of course. You likely don’t have one of these yet, (unless you have the Windows Presentation Foundation September CTP) but Microsoft is committed to delivering viewers for Windows Vista and downlevel versions of Windows, with Windows Presentation Foundation, and directly or through partners, for a range of other platforms. Of course, if you don’t like any of these viewers, the format is open and documented and you could always write your own.

Watch this space. I’ll be writing more here about XPS, and Office electronic paper output in general, in coming weeks.

Comments

  • Anonymous
    October 28, 2005
    Can I save a document in “Office XML” AND XPS in the same file. So that it can be read on any XP+ machine, but can still be edited in office? It would be great if this was the default save format.

  • Anonymous
    October 28, 2005
    Ian - It all depends on what you mean by "can". For end-users, this is not something we are currently exposing. The better solution for most end-users is to install the converters on their pre-Office "12" machines to be able to open (and edit) these new-format files. Developers on top of Office, of course, have many more options.
    At the technology level, the new Office XML formats allow other data, such as an XPS package to be included within the file. The Save as XPS feature is exposed through the Office object model, so you could, with a little code, generate the XPS (or PDF, for that matter) representation of a document and include it (more code) in the .docx or other roundtrippable file.
    The resulting file wouldn't actually be an XPS file, and so likely wouldn't be recognized by the viewer, so you would also need some code on the reading side to extract the fixed format representation.
    You would also want to think about what should happen when the document is edited. Does that delete or invalidate the fixed format representation?
    If you do have great end-user scenarios that would be enabled by streamlining this dual-stream story, I would love to hear more. I can't promise anything, but this is the intersection of a couple of new areas, so feedback is particularly useful.

  • Anonymous
    October 29, 2005
    Why isn't native PDF Export also available in Office Project 12?

  • Anonymous
    October 29, 2005
    "With an XPS Viewer, of course. You likely don’t have one of these yet, (unless you have the Windows Presentation Foundation September CTP)"

    Interestingly, the October CTP of Vista (5231) doesn't include WinFX at all, but can still view XPS documents via the Reach Viewer program...

  • Anonymous
    October 29, 2005
    What happens to people who aren't programmers and forced to wait on !Microsoft to provide a viewer for their platform to view these documents. Adobe had cross platform viewers from day one for PDF.

    What happens on other platforms if Rights Management is used in the XPS file? Right now, IRM == Windows only viewing.

    I'm really not seeing how this is anything other than a windows only trick.

  • Anonymous
    October 30, 2005
    The comment has been removed

  • Anonymous
    October 30, 2005
    As probably 99% of computer users already HAVE Adobe Acrobat reader, what is the point of introducing another "similar" format, other than the start of another Microsoft "embrace extend and extinguish" campaign against Adobe?

  • Anonymous
    October 31, 2005
    The comment has been removed

  • Anonymous
    October 31, 2005
    Hi, can you, on behalf of Microsoft and the MBU, confirm that the XSP format and technologies will be part of Microsoft Office 12 for Mac OS X?

  • Anonymous
    October 31, 2005
    Okay, so is there any reason to use XPS besides your beastly IRM system? Keeping in mind that PDF is already an open standard that works on all platforms.

  • Anonymous
    October 31, 2005
    Go Linux,,, forget these guys,,,,,what a joke.

  • Anonymous
    October 31, 2005
    Ok, let me get this straight. It's currently Windows only, controled by Microsoft, and provides absolutely no benefit over PDF. Oh, and it's heavily integrated with Vista. Hmmm...

    No thanks.

  • Anonymous
    October 31, 2005
    The comment has been removed

  • Anonymous
    November 01, 2005
    The “great end-user scenarios” is ANY document produced by ANY application can be viewed on ANY XP+ computer. Office is just the first step, if you did it for office other people will start to copy you. I do not wish to have to installer a “viewer” (free or otherwise) for every file format that someone may ever put on a website or email to me.

    To be usefull this would have to be the default behavour when ever a file is saved. (End users can not understand that other peole may not have the same software installed.)

    Havng the XPS in every doucment files, would also enable to shell to do great “preview icons” for all docuents, even if the software that understand that doucment format is on installed on the machine.

    The other day I wished to look at the details for a planning appllcaion that was on my local government’s web site, I first had to installed the AutoCad veiwer (I consider installing any software on my PC to be a greate risk so would rather not have to do so.). It could so so match better if the AutoCad file included the doument in XPS format, so I could just view it.

  • Anonymous
    November 01, 2005
    The comment has been removed

  • Anonymous
    November 01, 2005
    XPS really stands for "XML PostScript", doesn't it?

  • Anonymous
    November 01, 2005
    The comment has been removed

  • Anonymous
    November 02, 2005
    What's the point of you "Linux rules"-guys? I am using both Windows and Linux Workstations, same with servers - and I hate comments like "Go Linux, get away from M$"...
    However, introducing XPS Microsoft tries to create a new, easy and XML (instead of complex PostScript) based format.
    Isn't that allowed? Why was StarOffice created? To create an alternative product to Office... Why was Linux invented? To create an alternative OS to UNIX...
    Now, Microsoft invented XPS to create an alternative document format, that will be accessible from more platforms than Windows (see article, or did I missunderstand it?).
    So no reason to worry, they also did include a "Save to PDF"-function and I totally agree with Jeff to give users the choice.
    XPS is not on the big market yet, so no point for saying "PDF had a viewer from day one" - we are still before day one, I guess.
    I'm not Mr. Bell's advocate ;) but I think we should see the introduction of XPS far more objectivly.

  • Anonymous
    November 04, 2005
    The comment has been removed

  • Anonymous
    January 20, 2006
    The comment has been removed

  • Anonymous
    February 18, 2006
    Beta 1 of "OneNote 12" (and "Office12") is now available for download for those people who are signed...

  • Anonymous
    April 03, 2006
    Does anyone know if there is a way to map (convert) an XPS document into an Image document ? for example convert a one page PDF document to an XPS document to then convert into a JPEG document ?

    Or am i asking for too much ?

  • Anonymous
    April 05, 2006
    testuser123 - re: converting XPS to an image

    Not sure whether you are wanting to do this conversion as an end-user or in code? What you describe is what every viewer or printer which consumes XPS will do, so it certainly can be done in code. I don't know of a handy end-user way to do this yet. Best resource for this sort of question is the XPS team's blog at http://blogs.msdn.com/xps.

  • Anonymous
    April 19, 2006
    Well I downloaded "WindowsVistaProductGuide" from a site. its in xps format. the file size is 48MB. I converted it to PDF, its file size was 7MB. I think PDF is better as its easily portable. Long way to go for XPS.

  • Anonymous
    May 10, 2006
    I think most here fail to recognize the value of IRM.

    In today's world, how do I share a document with people in my company while still ensuring that the document stays private?  I can't email them a PDF file-- they could turn around and email that file to some news reporter.  Ok, I'll block it at the mailserver. What about burning the file to CD-R or copying it to USB drive of memory card?  I suppose I could remove the CD-R drives and shut down those ports.  Even still, someone could print that document and hand-carry it out of the building.

    And what if I want to share that document only with one department-- say Financials-- without it being leaked even within the company?  

    Using PDF and Adobe's offerings, there's no way to do this.  On the otherhand, XPS coupled with IRM provides complete control over that document.  I can create an XPS file that is only viewable online (ie, can't be printed) and only by C-level officers.  Email to whomever you'd like, but they won't be able to open it.  In Vista, you won't even be able to do screen captures of the document, preventing the information from being siphoned off into image files.

    If that isn't something you or your company are interested in, then there may not be a reason to switch from PDF to XPS.  Even if you aren't interested in it, I think any rational person will realize that there is clearly a market here that Adobe doesn't address.  Why are so many people bashing Microsoft for recognizing a need and adding features that addresses that need?

  • Anonymous
    May 23, 2006
    David, I believe the issue is the implementation of IRM.

    To what I understand, it seems that the mechanisms for IRM is not open, making it exclusive to Windows. Thus, any XPS document containing such restrictions would be restricted to Windows. Since many corporations will probably find a use for this feature (even for simple documents like reference manuals, for preventing edition), it might lock the format to the platform from the company we love to hate. It would be quite a shame, since the format itself looks promising.

    To me, it seems to be a replay of the situation with the .NET framework... It was quite promising, Microsoft promoted it as being cross-platform... Yet, in reality, only Windows got a complete implementation. While you might not care, it's the kind of thing people who need to work on multiple platforms (like me) are frowning.

  • Anonymous
    June 28, 2006
    The comment has been removed

  • Anonymous
    June 28, 2006
    "including the supporting information to enable, for example, working hyperlinks"

    is that option available in the beta?
    if so, I could not find it, and would like to be pointed in the right direction

  • Anonymous
    June 28, 2006
    Lewis - not sure whether the XML you are referring to here is Office Open XML or XPS. The former is not being removed, and in fact, these formats are the defaults in the Office 2007 applications that support them. This is a rich, full-fidelity, XML representation of an Office document.

    XPS is an XML reprentation of paginated output, and while it does not contain as much information as the roundtrippable XML document formats, it may still be appropriate for importing into the other program you mention. The capability to export from Office 2007 to XPS will be available as a download at no extra cost.

    Chris - the reason you are not seeing an option to enable hyperlinks in Office Beta 2 is that we always export these. If the source document contains hyperlinks you should see these in the emitted XPS.

    Jeff Bell

  • Anonymous
    July 05, 2006
    Key Truth : Whaytever you give will be given back to uou

  • Anonymous
    August 14, 2006
    I seem to have become a top search engine result for queries for a Microsoft Publisher Viewer. The bad...

  • Anonymous
    December 02, 2006
    Here's one for my list of favorite Office 2007 features (and one that's long overdue, IMHO). The Office

  • Anonymous
    December 03, 2006
    Beta 1 of "OneNote 12" (and "Office12") is now available for download for those people who are signed

  • Anonymous
    May 30, 2007
    I guess the Linux programmers still need to learn to read.  MS is committed to provider viewers for other platforms "directly or through partners, for a range of other platforms. Of course, if you don’t like any of these viewers, the format is open and documented and you could always write your own." Either they cannot read or they are not competent Linux programmers that can write their own viewer.  They need everything handed to them on a silver plater and like to spend there time whining about how evil MS.  Just shut up and write a viewer for XPS on Linux.  I'm sure you can get an open source project started to do this, since all Linux supporters only use open-source programs. Get some cheese to go with the "whine" and go complain to someone who cares about your holy war with MS.  Also, until Linux holds a majority of desktop market, then shut up about Linus being so superior.  If is was that good then why aren't more people using it (other than manly techies)?

  • Anonymous
    September 23, 2007
    XPS 或说是 XML Paper Specification,是微软最新为显示最终窗口中的交流的电子文档格式.这个Office新特性提供一些方式如从Office客户端应用程序输出到一个应用程序或独立平台的有标页数格式的文档,更多内容可以看Andy Simonds’ blog (http://blogs.msdn.com/andy_simonds/)或(http: //www.microsoft.com/whdc/xps/default.mspx).